HttpCurlInterface.php 732 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace AmazonPay;
  3. /* Interface for HttpCurl.php */
  4. interface HttpCurlInterface
  5. {
  6. /* Set Http header for Access token for the GetUserInfo call */
  7. public function setHttpHeader();
  8. /* Setter for Access token to get the user info */
  9. public function setAccessToken($accesstoken);
  10. /* POST using curl for the following situations
  11. * 1. API calls
  12. * 2. IPN certificate retrieval
  13. * 3. Get User Info
  14. */
  15. public function httpPost($url, $userAgent = null, $parameters = null);
  16. /* GET using curl for the following situations
  17. * 1. IPN certificate retrieval
  18. * 3. Get User Info
  19. */
  20. public function httpGet($url, $userAgent = null);
  21. }