Skip to main content

A simple Python API for 5sim.net

Project description

FiveSim

A simple Python API for 5sim.net

Installation

Before proceeding, you should register an account on 5sim.net and generate a personal API key to use.

Install from source:

pip install git+https://github.com/squirrelpython/5sim-python.git

Alternatively, install from PyPI:

pip install 5sim-python

Client

from fivesim import FiveSim

# These example values won't work. You must get your own api_key
API_KEY = 'ey.............' 

client = FiveSim(API_KEY) 

Endpoints

Official docs here

User

# Balance request
client.get_balance() # Provides profile data: email, balance and rating.

Products and prices

# Products request
client.product_requests(country='russia', product='telegram') # To receive the name, the price, quantity of all products, available to buy.

# Prices request
client.price_requests() # Returns product prices

# Prices by country
client.price_requests_by_country(country='russia') # Returns product prices by country

# Prices by product
client.price_requests_by_product(product='telegram') # Returns product prices by product

# Prices by country and product
client.price_requests_by_country_and_product(country='russia' ,product='telegram') # Returns product prices by country and specific product

Purchase

# Buy activation number
client.buy_number(country='russia', operator='any', product='telegram') # Buy new activation number

# Buy hosting number
client.buy_hosting_number(country='russia', operator='any', product='amazon') # Buy new hosting number

# Re-buy number
client.rebuy_number(product='telegram', number='7485.....') # Re-buy number 

Order management

# Check order (Get SMS)
client.check_order(order_id='12345678') # Check the sms was received

# Finish order
client.finish_order(order_id='12345678') # Finish the order after code received

# Cancel order
client.cancel_order(order_id='12345678') # Cancel the order

# Ban order 
client.ban_order(order_id='12345678') # Cancel the order if banned from the service

# SMS inbox list
client.sms_inbox_list(order_id='12345678') # Get SMS inbox list by order's id.

Powered by SquirrelPython.

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

5sim-python-1.0.4.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

5sim_python-1.0.4-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file 5sim-python-1.0.4.tar.gz.

File metadata

  • Download URL: 5sim-python-1.0.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for 5sim-python-1.0.4.tar.gz
Algorithm Hash digest
SHA256 28c63acaa366cbfc0c17e08eeb2e3615fc62fd0a8fe6840d7bb2311ef8335313
MD5 649a4a458dc7cfa186286ab3b32082a7
BLAKE2b-256 39a61b1d9f87730b4f038069345a3fbec773569738da4e1cc872d46f4c3f71dc

See more details on using hashes here.

File details

Details for the file 5sim_python-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: 5sim_python-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for 5sim_python-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 505cfb111aae6b3be0cc180cd5480df2d19473fdfd61861446eee9dcd59eb1e1
MD5 9c1ce1226f326a510fd6e30043f97089
BLAKE2b-256 36fb203142f70326b0a3eb4a3387d89a4212d06dea311456a607d259803a9501

See more details on using hashes here.

Supported by

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