Méthode |
Description |
|
__construct ( string $clientId, string $clientSecret, string | null $accessToken = null, string $redirectUrl = '', array $options = [] ) |
Create an instance of :php:class:Client. |
|
comments ( ) : CommentsRepository |
Returns the current instance of :php:class:CommentsRepository. |
|
getAccessToken ( string $code, string $grant = 'authorization_code' ) : League\OAuth2\Client\Token\AccessToken |
Sets and returns the access token. |
|
getLoginUrl ( array $options = [] ) : string |
Gets the login URL. |
|
likes ( ) : LikesRepository |
Returns the current instance of :php:class:LikesRepository. |
|
locations ( ) : LocationsRepository |
Returns the current instance of :php:class:LocationsRepository. |
|
media ( ) : MediaRepository |
Returns the current instance of :php:class:MediaRepository. |
|
paginate ( Response $response, integer | null $limit = null ) : Response |
Paginates a :php:class:Response. |
|
request ( string $method, string $uri, array $parameters = [] ) : Response |
Sends a request. |
|
secureRequests ( boolean $enable = true ) : void |
Enables or disables secure requests by adding or removing
SecureRequestMiddleware. |
|
setAccessToken ( League\OAuth2\Client\Token\AccessToken $token ) : void |
Sets an access token and adds it to AuthMiddleware so the application
can make authenticated requests. |
|
tags ( ) : TagsRepository |
Returns the current instance of :php:class:TagsRepository. |
|
users ( ) : UsersRepository |
Returns the current instance of :php:class:UsersRepository. |
|