Amazon Gift Code On-Demand (AGCOD)
This is a tool for working with the AGCOD service and can be used for easily creating, cancelling
and checking the status of Amazon gift codes.
Install
pip install agcod
Quickstart
from agcod import client
client.sandbox = True
client.debug = False
client.aws_region_name = 'us-east-1'
client.partner_id = '<Your Partner ID>'
client.aws_key_id = '<Your AWS Key ID>'
client.aws_secret_key = '<Your AWS Secret Key>'
request_id = client.partner_id + 'EXAMPLE'
amount = 1.00
currency = 'USD'
result = client.create_gift_card(request_id, amount, currency)
client.cancel_gift_card(request_id, result['gcId'])
client.get_available_funds()