PHP Interface PayWithAmazon\HttpCurlInterface

Afficher le fichier Open project: amzn/login-and-pay-with-amazon-sdk-php

Méthodes publiques

Méthode 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 méthode

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

httpPost() public méthode

* 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 méthode

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

setHttpHeader() public méthode

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