PHP Interface PayWithAmazon\HttpCurlInterface

Datei anzeigen Open project: amzn/login-and-pay-with-amazon-sdk-php

Public Methods

Method Description
httpGet ( $url, $userAgent = null ) * GET using curl for the following situations 1. IPN certificate retrieval 3. 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 ( ) * Set Http header for Access token for the GetUserInfo call

Method Details

httpGet() public method

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

httpPost() public method

* 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() public method

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

setHttpHeader() public method

* Set Http header for Access token for the GetUserInfo call
public setHttpHeader ( )