Skip to main content

A simple Python API for 5sim.net

Project description

PanjSim python

What is PanjSim ? (فارسی)

A simple Python API for 5sim.net

About 5sim.net

Virtual numbers for receiving SMS and activation of any service

Upon registration on social networks, messengers, C2C platforms and on other websites, an SMS activation of account is required. 5SIM provides the opportunity to bypass verification procedure with the help of a temporary virtual phone number, without using the personal one. Register many profiles on websites, by receiving a confirmation code online.

Installation guide

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/abbas-bachari/PanjSim.git

Alternatively, install from PyPI:

# Install:
pip install PanjSim

# Update:
pip install -U PanjSim

user manual

Client

from PanjSim import PanjSim

# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....' 

client = PanjSim(API_KEY) 

Endpoints

Official docs here

Account Information

from PanjSim import PanjSim

# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....' 

client = PanjSim(API_KEY) 

user=client.User()

# Get account balance
balance=user.get_balance()


# Get Orders history
order_history=user.get_orders_history()


# Get payments history
pyment_history=user.get_payments_history()

Price and products

from PanjSim import PanjSim
from PanjSim.Countrys import usa

# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....' 

client = PanjSim(API_KEY) 

country=usa


product=client.Products()

# Receive the name, the price, quantity of all products, available to buy.
operator=country.Operator.virtual23
product.get_products(country=country.name,operator=operator)


# Get all product prices
product.get_prices()

# Get product prices by country
product.get_prices(country=usa.name)

# Get product prices for a specific product
product.get_prices(product="telegram")

# Get product prices by country and specific product
product.get_prices(country=usa.name,product="telegram")

Purchase

from PanjSim import PanjSim
from PanjSim.Countrys import usa
# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....' 

client = PanjSim(API_KEY) 

country=usa

Purchase=client.Purchase()


# Buy activation number
operator=country.Operator.virtual23
order=Purchase.buy_activation_number(country=country.name,operator=operator,product='telegram')

# Check order (Get SMS)
Purchase.check_order(order_id=order['id'])

# Ban order
Purchase.ban_order(order_id=order['id'])

# Cancel order
Purchase.cancel_order(order_id=order['id'])

# Finish order
Purchase.finish_order(order_id=order['id'])

# Get SMS inbox list
Purchase.get_sms_inbox(order_id=order['id'])

# Re-buy number
Purchase.rebuy_number(product="telegram",number='+177777')

# Buy hosting number
Purchase.buy_hosting_number(country=country.name,operator='any',product='1day')

More features

from PanjSim import PanjSim
from PanjSim.Countrys import usa

# Replace your API key...
API_KEY = 'eyJhbGciOiJSUzUx.....' 

client = PanjSim(API_KEY) 

# Get notifications
client.get_notification(lang='en')

# Get countries list
client.get_countries_list()

# Find the cheapest price
client.find_low_price(product='telegram',limit=5)

Powered by Abbas Bachari.

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

PanjSim-1.0.4.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PanjSim-1.0.4-py3-none-any.whl (21.2 kB view details)

Uploaded Python 3

File details

Details for the file PanjSim-1.0.4.tar.gz.

File metadata

  • Download URL: PanjSim-1.0.4.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for PanjSim-1.0.4.tar.gz
Algorithm Hash digest
SHA256 ca39a442b07cc76a35696f4beef8059839516feb7c4a19135336b9ecdcd54b94
MD5 e683a04348dd905646b520278157eb73
BLAKE2b-256 45c08b62fe6ff2074f6a8faa32b6337a1688f53866b3f709f51b051ade97fc21

See more details on using hashes here.

File details

Details for the file PanjSim-1.0.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for PanjSim-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 49a48a8425167e6efcb90c00f48a84633c796bcc00977dba1984b9c00517ed63
MD5 af91105133ea11474300cead68fc822f
BLAKE2b-256 c539a8ce44c7b0e191bd325b83913108ec6f359fb7e3a31643f8133b72f88097

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