PHP Class fkooman\OAuth\Client\TokenRequest

显示文件 Open project: fkooman/php-oauth-client Class Usage Examples

Public Methods

Method Description
__construct ( fkooman\OAuth\Client\HttpClientInterface $httpClient, fkooman\OAuth\Client\ClientConfigInterface $clientConfig )
withAuthorizationCode ( $authorizationCode )
withRefreshToken ( $refreshToken )

Private Methods

Method Description
accessTokenRequest ( array $p )

Method Details

__construct() public method

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

withAuthorizationCode() public method

public withAuthorizationCode ( $authorizationCode )

withRefreshToken() public method

public withRefreshToken ( $refreshToken )