Méthode | Description | |
---|---|---|
GetAccessToken ( array $credentials, $code, $redirectUri = null ) | ||
RefreshAccessToken ( array $credentials ) | ||
__construct ( array $scope = null, CurlUtils $curlUtils = null ) |
Méthode | Description | |
---|---|---|
MakeRequest ( string $url, array $params ) : OAuthToken | Makes an HTTP request to the given URL and extracts the returned OAuth2 response. |
public GetAccessToken ( array $credentials, $code, $redirectUri = null ) | ||
$credentials | array |
protected MakeRequest ( string $url, array $params ) : OAuthToken | ||
$url | string | the URL to make the request to |
$params | array | the parameters to include in the POST body |
Résultat | OAuthToken | the returned token |
public RefreshAccessToken ( array $credentials ) | ||
$credentials | array |
public __construct ( array $scope = null, CurlUtils $curlUtils = null ) | ||
$scope | array | |
$curlUtils | CurlUtils | optional, curl utility to be used for HTTP |