Skip to main content

Python API Wrapper for Recharge

Project description

Python 3.4, 3.5, 3.6 MIT License


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


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.1.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

recharge_api-1.4.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page