PHP code example of hayleyberryl2s / amazongiftcode

1. Go to this page and download the library: Download hayleyberryl2s/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/ */

    

hayleyberryl2s / 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();