PHP Класс PayWithAmazon\HttpCurl

Наследование: implements paywithamazon\HttpCurlInterface
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( $config = null ) * Takes user configuration array as input Takes configuration for API call or IPN config
getCurlResponseInfo ( ) * Get the output of Curl Getinfo
httpGet ( $url, $userAgent = null ) * GET using curl for the following situations 1. IPN certificate retrieval 2. Get User Info
httpPost ( $url, $userAgent = null, $parameters = null ) * POST using curl for the following situations 1. API calls 2. IPN certificate retrieval 3. Get User Info
setAccessToken ( $accesstoken ) * Setter for Access token to get the user info
setHttpHeader ( ) * Setter for boolean header to get the user info

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

Метод Описание
commonCurlParams ( $url, $userAgent ) * Add the common Curl Parameters to the curl handler $ch Also checks for optional parameters if provided in the config config['cabundle_file'] config['proxy_port'] config['proxy_host'] config['proxy_username'] config['proxy_password']
execute ( $ch ) * Execute Curl request

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

__construct() публичный метод

* Takes user configuration array as input Takes configuration for API call or IPN config
public __construct ( $config = null )

getCurlResponseInfo() публичный метод

* Get the output of Curl Getinfo
public getCurlResponseInfo ( )

httpGet() публичный метод

* GET using curl for the following situations 1. IPN certificate retrieval 2. Get User Info
public httpGet ( $url, $userAgent = null )

httpPost() публичный метод

* POST using curl for the following situations 1. API calls 2. IPN certificate retrieval 3. Get User Info
public httpPost ( $url, $userAgent = null, $parameters = null )

setAccessToken() публичный метод

* Setter for Access token to get the user info
public setAccessToken ( $accesstoken )

setHttpHeader() публичный метод

* Setter for boolean header to get the user info
public setHttpHeader ( )