Python API Wrapper for Recharge
Project description
This library makes interacting with the Recharge API dead simple.
Installation
pip install recharge-api
Usage
from recharge-api import RechargeAPI
api = RechargeAPI(access_token='XXXXX')
response = api.Order.list({'status': 'QUEUED', 'limit': '250'})
for order in response['orders']:
print(order['id'])
For more details on the content of the reponses, visit the official recharge API docs.
Resources Available
api.Address api.Charge api.Checkout api.Customer api.Order api.Subscription
Methods Available
api.*.create api.*.update api.*.get api.*.list api.Address.apply_discount api.Checkout.charge api.Order.change_date api.Order.delete api.Subscription.cancel api.Subscription.set_next_charge_date
License
MIT. See LICENSE for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
recharge-api-1.4.0.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for recharge_api-1.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fccf8161f6e0f3ecdd170ae24bd0fdcf5f7afa030bb02b0cada7ca3ab9c78a |
|
MD5 | 5d3c6c38da6db940f4f9146c4af32d7e |
|
BLAKE2b-256 | dd16c305f6f21e1dbe4bb9137dd67fbdfead1150c11034ee88fbf43cb733dbd6 |