PHP Class DirkGroenen\Pinterest\Pinterest

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

Méthodes publiques

Свойство Type Description
$auth DirkGroenen\Pinterest\Auth\PinterestOAuth Reference to authentication class instance
$request DirkGroenen\Pinterest\Transport\Request A reference to the request class which travels through the application

Méthodes publiques

Méthode Description
__construct ( string $client_id, string $client_secret, DirkGroenen\Pinterest\Utils\CurlBuilder $curlbuilder = null ) Constructor
__get ( string $endpoint ) : mixed Get an Pinterest API endpoint
getRateLimit ( ) : integer Get rate limit from the headers
getRateLimitRemaining ( ) : mixed Get rate limit remaining from the headers

Method Details

__construct() public méthode

Constructor
public __construct ( string $client_id, string $client_secret, DirkGroenen\Pinterest\Utils\CurlBuilder $curlbuilder = null )
$client_id string
$client_secret string
$curlbuilder DirkGroenen\Pinterest\Utils\CurlBuilder

__get() public méthode

Get an Pinterest API endpoint
public __get ( string $endpoint ) : mixed
$endpoint string
Résultat mixed

getRateLimit() public méthode

Get rate limit from the headers
public getRateLimit ( ) : integer
Résultat integer

getRateLimitRemaining() public méthode

Get rate limit remaining from the headers
public getRateLimitRemaining ( ) : mixed
Résultat mixed

Property Details

$auth public_oe property

Reference to authentication class instance
public PinterestOAuth,DirkGroenen\Pinterest\Auth $auth
Résultat DirkGroenen\Pinterest\Auth\PinterestOAuth

$request public_oe property

A reference to the request class which travels through the application
public Request,DirkGroenen\Pinterest\Transport $request
Résultat DirkGroenen\Pinterest\Transport\Request