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.3.0.tar.gz
(5.5 kB
view hashes)
Built Distribution
Close
Hashes for recharge_api-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1af77c58a2f2cf2d64f4299248147de31c6183e8de4ae088ffac956ec513e601 |
|
MD5 | 53b6bd5ccb34aabd897714f228a09243 |
|
BLAKE2b-256 | 843fcece5bcdedc15c3151fe3911ab7df61f3c6515b104cb994ad2f3efac3a6a |