PHP Класс 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.
Наследование: extends OAuth2Client
Показать файл Открыть проект

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

Метод Описание
authenticate ( $code )

Приватные методы

Метод Описание
parseRequestResult ( $result )
request ( $url, $params = false, $type = "GET" )

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

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

public authenticate ( $code )