Skip to content

JPLeoRX/crypto-cloud-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CryptoCloud Python Client

This is a Python client for CryptoCloud API, this package is a work-in-progress client, not covering all the endpoints of the official API, but providing the basics to get started with CryptoCloud invoices. The official documentation for all API endpoints is available here.

Feel free to drop your suggestions, comments and report bugs/issues you had using this package.

Supported endpoints

Installation

Normal installation

pip install crypto-cloud-py

Development installation

git clone https://github.com/jpleorx/crypto-cloud-py.git
cd crypto-cloud-py
pip install --editable .

How to use

First of all make sure you got your API key from CryptoCloud

After you got your API key follow this basic example

from crypto_cloud_py import CryptoCloudApi

# Initialize API
API_KEY = 'XXX'
SHOP_ID = 'YYY'
api = CryptoCloudApi(api_key=API_KEY)

# Create new invoice
new_invoice = api.invoice_create(shop_id=SHOP_ID, amount=100, currency='EUR', order_id='12345678', email='mail@example.com', locale='de')

# Check invoice status
invoice_statuses = api.invoices_info([new_invoice.uuid])

# Cancel invoice
api.invoice_cancel(new_invoice.uuid)

# Check statistics
stats = api.invoice_statistics(start='01.12.2024', end='20.01.2025')

Links

In case you’d like to check my other work or contact me:

Releases

No releases published

Packages

No packages published

Languages