PHP Class DirkGroenen\Pinterest\Transport\Request

Afficher le fichier Open project: dirkgroenen/pinterest-api-php Class Usage Examples

Protected Properties

Свойство Type Description
$access_token string Access token

Méthodes publiques

Méthode 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

Method Details

__construct() public méthode

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

delete() public méthode

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

execute() public méthode

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
Résultat DirkGroenen\Pinterest\Transport\Response

get() public méthode

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

getHeaders() public méthode

Return the headers from the last request
public getHeaders ( ) : array
Résultat array

post() public méthode

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

setAccessToken() public méthode

Set the access token
public setAccessToken ( string $token ) : void
$token string
Résultat void

update() public méthode

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
Résultat DirkGroenen\Pinterest\Transport\Response

Property Details

$access_token protected_oe property

Access token
protected string $access_token
Résultat string