No project description provided
Project description
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
- Invoice Creation,
POST https://api.cryptocloud.plus/v2/invoice/create - Invoice Cancellation,
POST https://api.cryptocloud.plus/v2/invoice/merchant/canceled - Invoice information,
POST https://api.cryptocloud.plus/v2/invoice/merchant/info - Statistics,
POST https://api.cryptocloud.plus/v2/invoice/merchant/statistics
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:
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crypto-cloud-py-0.1.tar.gz.
File metadata
- Download URL: crypto-cloud-py-0.1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13ef8460533107c31e4bb8dfede42bb84c63d0cf035da0bdd32493a79cf5ede7
|
|
| MD5 |
438bc6bd566cc1be90368065482b49f9
|
|
| BLAKE2b-256 |
547908a3b8c4bd6e2fd7e59f23316f7c867b4a04804333f9a37d0a574b9a16e1
|
File details
Details for the file crypto_cloud_py-0.1-py3-none-any.whl.
File metadata
- Download URL: crypto_cloud_py-0.1-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
924f58284c6c2368d4e5c536f6091848536b04ecd6a16cfebb9c37b925ebfdb8
|
|
| MD5 |
5f48bd49d3c44824977f65eadd592e54
|
|
| BLAKE2b-256 |
bca4e52164b434f58c80bcb8c80cd4b4318fc8fe8acd98168031e5eb02acc0b9
|