PHP 클래스 DirkGroenen\Pinterest\Transport\Request

파일 보기 프로젝트 열기: dirkgroenen/pinterest-api-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$access_token string Access token

공개 메소드들

메소드 설명
__construct ( DirkGroenen\Pinterest\Utils\CurlBuilder $curlbuilder ) Constructor
delete ( string $endpoint, array $parameters = [] ) : DirkGroenen\Pinterest\Transport\Response Make a delete request to the given endpoint
execute ( string $method, string $apiCall, array $parameters = [], array $headers = [] ) : DirkGroenen\Pinterest\Transport\Response Execute the http request
get ( string $endpoint, array $parameters = [] ) : DirkGroenen\Pinterest\Transport\Response Make a get request to the given endpoint
getHeaders ( ) : array Return the headers from the last request
post ( string $endpoint, array $parameters = [] ) : DirkGroenen\Pinterest\Transport\Response Make a post request to the given endpoint
setAccessToken ( string $token ) : void Set the access token
update ( string $endpoint, array $parameters = [], array $queryparameters = [] ) : DirkGroenen\Pinterest\Transport\Response Make an update request to the given endpoint

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( DirkGroenen\Pinterest\Utils\CurlBuilder $curlbuilder )
$curlbuilder DirkGroenen\Pinterest\Utils\CurlBuilder

delete() 공개 메소드

Make a delete request to the given endpoint
public delete ( string $endpoint, array $parameters = [] ) : DirkGroenen\Pinterest\Transport\Response
$endpoint string
$parameters array
리턴 DirkGroenen\Pinterest\Transport\Response

execute() 공개 메소드

Execute the http request
public execute ( string $method, string $apiCall, array $parameters = [], array $headers = [] ) : DirkGroenen\Pinterest\Transport\Response
$method string
$apiCall string
$parameters array
$headers array
리턴 DirkGroenen\Pinterest\Transport\Response

get() 공개 메소드

Make a get request to the given endpoint
public get ( string $endpoint, array $parameters = [] ) : DirkGroenen\Pinterest\Transport\Response
$endpoint string
$parameters array
리턴 DirkGroenen\Pinterest\Transport\Response

getHeaders() 공개 메소드

Return the headers from the last request
public getHeaders ( ) : array
리턴 array

post() 공개 메소드

Make a post request to the given endpoint
public post ( string $endpoint, array $parameters = [] ) : DirkGroenen\Pinterest\Transport\Response
$endpoint string
$parameters array
리턴 DirkGroenen\Pinterest\Transport\Response

setAccessToken() 공개 메소드

Set the access token
public setAccessToken ( string $token ) : void
$token string
리턴 void

update() 공개 메소드

Make an update request to the given endpoint
public update ( string $endpoint, array $parameters = [], array $queryparameters = [] ) : DirkGroenen\Pinterest\Transport\Response
$endpoint string
$parameters array
$queryparameters array
리턴 DirkGroenen\Pinterest\Transport\Response

프로퍼티 상세

$access_token 보호되어 있는 프로퍼티

Access token
protected string $access_token
리턴 string