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.2.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for recharge_api-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fa35f19062b1e2194bac5aa28b5e37d00640320b33adc812b9919045457d70b |
|
MD5 | 948a9c1ed93ddf93968c4456a3a8bffc |
|
BLAKE2b-256 | 46b7c3b7df594bc5a49fddeba3ebcc4a05893465aac0afe69ed0f7ace2996665 |