PHP Class AmazonOAuth2Client

The sole purpose of this subclass is to make sure the POST params for cURL are provided as an urlencoded string rather than an array. This is because Amazon requires COntent-Type header to be application/x-www-form-urlencoded, which cURL overrides to multipart/form-data when POST fields are provided as an array The only difference from Oauth2CLient in authenticate() method is http_build_query() wrapped around $params. request() and parseRequestResult() methods are exact copies from Oauth2Client. They are copied here because private scope does not allow calling them from subclass.
Inheritance: extends OAuth2Client
Show file Open project: hybridauth/hybridauth

Public Methods

Method Description
authenticate ( $code )

Private Methods

Method Description
parseRequestResult ( $result )
request ( $url, $params = false, $type = "GET" )

Method Details

authenticate() public method

public authenticate ( $code )