Coder Social home page Coder Social logo

5sim-python's Introduction

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.

5sim-python's People

Contributors

scribesavant avatar keyiflerolsun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.