Skip to main content

Unofficial Python wrapper for Asiacell API.

Project description

Unofficial Python Wrapper for Asiacell API ✨

Simplify interaction with the Asiacell API using this unofficial Python wrapper. Perform actions like retrieving transferring money, Verify transferring, Spin wheel, Get the transaction and subscriptions history.

Installation

Install the package using pip:

pip install asiacell.py

Usage

Here's a simple example of using asiacell.py:

from asiacell import Asiacell
from asiacell.utils.models import Bundle

# Defining The Number Object To Login With
asia = Asiacell("07700000000")

# Login With The Number
pid = asia.login()  # sending code to phone number and getting the pid

code = input(f"Enter the otp code: ")  # getting the code from user

# verify login
asia.verify_login(pid, code)

# saving data for future use without login again
asia.save_auth()
asia.load_auth()
print("AUTH LOADED")
print(asia.get_account_data().balance.value)  # prints account balance

res = asia.get_subscriptions_history()
bundle: Bundle
for bundle in res.bundles:
	print(f"{bundle.bundle_name}, {bundle.amount}")

For more details, refer to the upcoming documentation.

Contributing

Contributions are welcome! Report bugs or suggest features by creating GitHub issues. Contribute code by forking the repository and submitting a pull request.

Contact

Questions or discussions about the package can be held on our Discord community. Join us today!

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

asiacell.py-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

File details

Details for the file asiacell.py-1.0.0.tar.gz.

File metadata

  • Download URL: asiacell.py-1.0.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for asiacell.py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1dc5e175f803306c84e5b25b4471ad3e0a5d65bbfe5e9ecf40e4e16c541a2808
MD5 ac98744d6b08e443362a72235fb53bcf
BLAKE2b-256 56b6fe551fd6bd5209eeddfa4d301bfd36f862259f61fd8a6454ef716a0823ae

See more details on using hashes here.

Supported by

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