PHP Класс SimpleOAuth2Handler, googleads-php-lib

Наследование: extends OAuth2Handler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetAccessToken ( array $credentials, $code, $redirectUri = null )
RefreshAccessToken ( array $credentials )
__construct ( array $scope = null, CurlUtils $curlUtils = null )

Защищенные методы

Метод Описание
MakeRequest ( string $url, array $params ) : OAuthToken Makes an HTTP request to the given URL and extracts the returned OAuth2 response.

Описание методов

GetAccessToken() публичный Метод

См. также: OAuth2Hanlder::GetAccessToken()
public GetAccessToken ( array $credentials, $code, $redirectUri = null )
$credentials array

MakeRequest() защищенный Метод

Makes an HTTP request to the given URL and extracts the returned OAuth2 response.
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
Результат OAuthToken the returned token

RefreshAccessToken() публичный Метод

См. также: OAuth2Hanlder::RefreshAccessToken()
public RefreshAccessToken ( array $credentials )
$credentials array

__construct() публичный Метод

public __construct ( array $scope = null, CurlUtils $curlUtils = null )
$scope array
$curlUtils CurlUtils optional, curl utility to be used for HTTP