PHP Interface Larabros\Elogram\Http\OAuth2\Providers\AdapterInterface

Exibir arquivo Open project: larabros/elogram Interface Usage Examples

Public Methods

Method Description
getAccessToken ( mixed $grant, array $options = [] ) : League\OAuth2\Client\Token\AccessToken Requests an access token using a specified grant and option set.
getAuthorizationUrl ( array $options = [] ) : string Builds the authorization URL.

Method Details

getAccessToken() public method

Requests an access token using a specified grant and option set.
public getAccessToken ( mixed $grant, array $options = [] ) : League\OAuth2\Client\Token\AccessToken
$grant mixed
$options array
return League\OAuth2\Client\Token\AccessToken

getAuthorizationUrl() public method

Builds the authorization URL.
public getAuthorizationUrl ( array $options = [] ) : string
$options array
return string Authorization URL