Property | Type | Description | |
---|---|---|---|
$access_token | string | Access token |
Method | Description | |
---|---|---|
__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 |
public __construct ( DirkGroenen\Pinterest\Utils\CurlBuilder $curlbuilder ) | ||
$curlbuilder | DirkGroenen\Pinterest\Utils\CurlBuilder |
public getHeaders ( ) : array | ||
return | array |
public setAccessToken ( string $token ) : void | ||
$token | string | |
return | void |