Python SDK for the Esimaccess API
Project description
Esimaccess Python Library
Python SDK for the Esimaccess API, using httpx.
Documentation
See the API Docs.
Installation
pip install esimaccess-python
Usage
The library needs to be configured with your account's access code which is availible in your developer dashboard.
from esimaccess_python import Package, authenticate
client = Package(authenticate("Access code"))
To Get All Data Packages
print(client.list())
To Order Profiles
print(client.order(transactionId="your_txn_id", amount=15000, packageInfoList=[{"packageCode": "7aa948d363", "count": 1, "price": 15000}]))
To Query All Allocated Profiles
from esimaccess_python import PageParam
print(client.query(orderNo="B23120118131854", iccid="", pager=PageParam(pageNum=1, pageSize=20)))
To Cancel Profile
print(client.cancel(iccid='8943108170000775671'))
To Suspend Profile
print(client.suspend(iccid='8943108170000775671'))
To Unsuspend Profile
print(client.unsuspend(iccid='8943108170000775671'))
To Revoke Profile
print(client.revoke(iccid='8943108170000775671'))
To Get Balance
print(client.balance())
To Top Up
print(client.topup(iccid='89852245280001354019', topUpCode='TOPUP_CKH491', transactionId='top_up_for_existing_plan_CKH491', amount=15000))
To Set Webhook
print(client.set_webhook(webhook='https://webhook.endpoint.site/unique-webhook'))
To Get Current Webhook
print(client.query_webhook(webhook='https://webhook.endpoint.site/unique-webhook'))
To Send SMS
print(client.sendSms(iccid='89852000261098474477', message='Your Message!'))
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 esimaccess_python-0.1.1.tar.gz.
File metadata
- Download URL: esimaccess_python-0.1.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30257de3cac21ce6a304ad28c26dbf546eedbb494f6c1a62d99ce8042d2b32e4
|
|
| MD5 |
0c3a77c261b70f3980b9d5e96c56c723
|
|
| BLAKE2b-256 |
33e171e3b8bb4d6dcd7cd647f2e31735622ab02fe16cc091f83c034e53843af3
|
File details
Details for the file esimaccess_python-0.1.1-py3-none-any.whl.
File metadata
- Download URL: esimaccess_python-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09de0dcb1c04c799cefc109691f18d5a4dcad919d645365bd5250fe4ed50616e
|
|
| MD5 |
3095a7568fe08e7de526ffa51d9110a0
|
|
| BLAKE2b-256 |
f1a2d221caac57777c8fa39d55b0ca989597677a8807bebce17ddb2efa04e6f8
|