PHP 클래스 Automattic\Wistia\Client

상속: use trait Automattic\Wistia\Traits\ApiMethodsTrait
파일 보기 프로젝트 열기: Automattic/wistia-php

공개 프로퍼티들

프로퍼티 타입 설명
$client object The HTTP client
$format string Response format
$last_response_code integer The response code of the last request

공개 메소드들

메소드 설명
__construct ( array $params ) Init the HTTP Client
__wakeup ( ) Prevent unserialization
create_media ( string $file, array $query = [] ) : object Create a new media. Wistia handles upload differently than other methods.
delete ( $endpoint, $query = [] ) : string Send a DELETE request
get ( $endpoint, $query = [] ) : string Send a GET request
get_client ( ) : object Returns the client
get_token ( ) : string Get the token
post ( $endpoint, $query = [] ) : string Send a POST request
put ( $endpoint, $query = [] ) : string Send a PUT request

비공개 메소드들

메소드 설명
_make_request ( string $type, string $endpoint, $query = [] ) : string Make a request

메소드 상세

__construct() 공개 메소드

Init the HTTP Client
public __construct ( array $params )
$params array

__wakeup() 공개 메소드

Prevent unserialization
public __wakeup ( )

create_media() 공개 메소드

The API endpoint is different and the parameters are completely different. We need a new Client to handle this kind of requests.
public create_media ( string $file, array $query = [] ) : object
$file string
$query array
리턴 object

delete() 공개 메소드

Send a DELETE request
public delete ( $endpoint, $query = [] ) : string
리턴 string

get() 공개 메소드

Send a GET request
public get ( $endpoint, $query = [] ) : string
리턴 string

get_client() 공개 메소드

Returns the client
public get_client ( ) : object
리턴 object

get_token() 공개 메소드

Get the token
public get_token ( ) : string
리턴 string

post() 공개 메소드

Send a POST request
public post ( $endpoint, $query = [] ) : string
리턴 string

put() 공개 메소드

Send a PUT request
public put ( $endpoint, $query = [] ) : string
리턴 string

프로퍼티 상세

$client 공개적으로 프로퍼티

The HTTP client
public object $client
리턴 object

$format 공개적으로 프로퍼티

Response format
public string $format
리턴 string

$last_response_code 공개적으로 프로퍼티

The response code of the last request
public int $last_response_code
리턴 integer