Xendit REST API Client for Python - Invoice, Payment Request, Payment Method, Refund, Balance, Transaction, Customer, and Payout Services https://xendit.github.io/apireference/
Project description
Xendit Python SDK
The official Xendit Python SDK provides a simple and convenient way to call Xendit's REST API in applications written in Python.
- Package version: 3.7.0
Requirements
Python >= 3.10
Getting Started
Installation
Install directly from Xendit's Github Repository:
pip install git+https://github.com/xendit/xendit-python.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/xendit/xendit-python.git
)
Then import the package:
import xendit
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import xendit
Authorization
The SDK needs to be instantiated using your secret API key obtained from the Xendit Dashboard. You can sign up for a free Dashboard account here.
import xendit
from xendit.apis import BalanceApi
from pprint import pprint
xendit.set_api_key('XENDIT_API_KEY')
client = xendit.ApiClient()
try:
response = BalanceApi(client).get_balance('CASH')
pprint(response)
except xendit.XenditSdkException as e:
print("Exception when calling BalanceApi->get_balance: %s\n" % e)
Documentation
Find detailed API information and examples for each of our product's by clicking the links below,
All URIs are relative to https://api.xendit.co. For more information about our API, please refer to https://developers.xendit.co/.
Further Reading
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
Built Distribution
Hashes for xendit_python-3.7.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b78c336327538855a4e9ea3c49f7b8a2e661883fc6004e51e51701e9074dfcdf |
|
MD5 | 4c4699b0055ade6afcda4e7d433a6fb6 |
|
BLAKE2b-256 | 2b9e543bb114114d6b1f7cc54604dd61db8bb6c0526e255460f49627c0456930 |