PHP code example of kamerk22 / amazongiftcode
1. Go to this page and download the library: Download kamerk22/amazongiftcode library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kamerk22 / amazongiftcode example snippets
$aws = AmazonGiftCode::make()->buyGiftCard($value);
$aws = AmazonGiftCode::make()->buyGiftCard($value, $creationRequestId);
$aws = AmazonGiftCode::make()->cancelGiftCard($creationRequestId, $gcId);
$aws = AmazonGiftCode::make()->getAvailableFunds();
$aws = AmazonGiftCode::make($key, $secret, $partner, $endpoint, $currency)->buyGiftCard($value);
$status = $aws->getStatus();
$gcId = $aws->getId();
$creationRequestId = $aws->getCreationRequestId();
$gcClaimCode = $aws->getClaimCode();
$amount = $aws->getValue();
$currencyCode = $aws->getCurrency();
$rawJson = $aws->getRawJson();
$status = $aws->getStatus();
$gcId = $aws->getId();
$creationRequestId = $aws->getCreationRequestId();
$rawJson = $aws->getRawJson();
$status = $aws->getStatus();
$amount = $aws->getAmount();
$currency = $aws->getCurrency();
$timestamp = $aws->getTimestamp();
$rawJson = $aws->getRawJson();