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.0.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for recharge_api-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0b396863edd7181cf5f9879efe0110a1b35734483af8b88fd9335bcfd6fcbc1 |
|
MD5 | 167cbd01db5145d92f3cf16f516d1acb |
|
BLAKE2b-256 | fada07bd1f22665cc14a024b851689991c18e832bd7f28a5fbfafb5780733223 |