Python API Wrapper for Recharge
Project description
This library makes interacting with the Recharge API dead simple.
Installation
pip install recharge
Usage
from recharge 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
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-1.0.0.tar.gz
(3.6 kB
view details)
Built Distribution
recharge-1.0.0-py3.6.egg
(7.0 kB
view details)
File details
Details for the file recharge-1.0.0.tar.gz
.
File metadata
- Download URL: recharge-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 130d8c8f4c61db0befb58525dd88d6e63ca80db13a34f4b0d8432277fecae635 |
|
MD5 | d4321881e697a5421173a9aba0ecb0dd |
|
BLAKE2b-256 | 36e9ed618934517eb3faddda3a160ddf62f75d359ab8d97cb899b90744ae6021 |
File details
Details for the file recharge-1.0.0-py3.6.egg
.
File metadata
- Download URL: recharge-1.0.0-py3.6.egg
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c49014839c6f476c6ca81279f106aa926d57291efc4ca022c8e7285743730a9 |
|
MD5 | a65ab8a4f75cd55040c3da9e0d4de66b |
|
BLAKE2b-256 | ea1e78a7ade2ae809c2582c0d41fc378c8a82cee11a3f1a92536f3f6efd4be2c |