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
API_KEY = 'ey.............'
client = FiveSim(API_KEY)
Endpoints
Official docs here
User
client.get_balance()
Products and prices
client.product_requests(country='russia', product='telegram')
client.price_requests()
client.price_requests_by_country(country='russia')
client.price_requests_by_product(product='telegram')
client.price_requests_by_country_and_product(country='russia' ,product='telegram')
Purchase
client.buy_number(country='russia', operator='any', product='telegram')
client.buy_hosting_number(country='russia', operator='any', product='amazon')
client.rebuy_number(product='telegram', number='7485.....')
Order management
client.check_order(order_id='12345678')
client.finish_order(order_id='12345678')
client.cancel_order(order_id='12345678')
client.ban_order(order_id='12345678')
client.sms_inbox_list(order_id='12345678')
Powered by SquirrelPython.