PHP Class fkooman\OAuth\Client\Api

Author: François Kooman ([email protected])
显示文件 Open project: fkooman/php-oauth-client Class Usage Examples

Public Methods

Method Description
__construct ( $clientConfigId, fkooman\OAuth\Client\ClientConfigInterface $clientConfig, fkooman\OAuth\Client\StorageInterface $tokenStorage, fkooman\OAuth\Client\HttpClientInterface $httpClient )
deleteAccessToken ( Context $context )
deleteRefreshToken ( Context $context )
getAccessToken ( Context $context )
getAuthorizeUri ( Context $context, $stateValue = null )
getRefreshToken ( Context $context )
setClientConfig ( fkooman\OAuth\Client\ClientConfigInterface $clientConfig )
setClientConfigId ( $clientConfigId )
setHttpClient ( fkooman\OAuth\Client\HttpClientInterface $httpClient )
setTokenStorage ( fkooman\OAuth\Client\StorageInterface $tokenStorage )

Method Details

__construct() public method

public __construct ( $clientConfigId, fkooman\OAuth\Client\ClientConfigInterface $clientConfig, fkooman\OAuth\Client\StorageInterface $tokenStorage, fkooman\OAuth\Client\HttpClientInterface $httpClient )
$clientConfig fkooman\OAuth\Client\ClientConfigInterface
$tokenStorage fkooman\OAuth\Client\StorageInterface
$httpClient fkooman\OAuth\Client\HttpClientInterface

deleteAccessToken() public method

public deleteAccessToken ( Context $context )
$context Context

deleteRefreshToken() public method

public deleteRefreshToken ( Context $context )
$context Context

getAccessToken() public method

public getAccessToken ( Context $context )
$context Context

getAuthorizeUri() public method

public getAuthorizeUri ( Context $context, $stateValue = null )
$context Context

getRefreshToken() public method

public getRefreshToken ( Context $context )
$context Context

setClientConfig() public method

public setClientConfig ( fkooman\OAuth\Client\ClientConfigInterface $clientConfig )
$clientConfig fkooman\OAuth\Client\ClientConfigInterface

setClientConfigId() public method

public setClientConfigId ( $clientConfigId )

setHttpClient() public method

public setHttpClient ( fkooman\OAuth\Client\HttpClientInterface $httpClient )
$httpClient fkooman\OAuth\Client\HttpClientInterface

setTokenStorage() public method

public setTokenStorage ( fkooman\OAuth\Client\StorageInterface $tokenStorage )
$tokenStorage fkooman\OAuth\Client\StorageInterface