Wrapper for automatic reception of SMS-messages by onlinesim.ru
Project description
Onlinesim Python API
Wrapper for automatic reception of SMS-messages by onlinesim.ru
Installation
You can install or upgrade package with:
$ pip install onlinesimru --upgrade
Or you can install from source with:
$ git clone https://github.com/s00d/onlinesim-python-api
$ cd onlinesim-python-api
$ python setup.py install
...or install from source buth with pip
$ pip install git+https://github.com/s00d/onlinesim-python-api
Example
from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService
def main():
client = UserService('YOUR_TOKEN')
balance = client.balance()
print(balance)
main()
Example2
from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService
def main():
numbers = NumbersService('YOUR_TOKEN')
input('Press enter if you sms was sent')
tzid = numbers.get('service')
print(tzid)
code = numbers.wait_code(tzid)
print(code)
main()
Example3
# multiple driver using
from onlinesimru import Driver
def main():
driver = Driver('YOUR_TOKEN')
tzid = driver.numbers().get('service')
print(tzid)
code = driver.numbers().wait_code(tzid)
print(code)
main()
Documentation
All documentation is in the wiki of this project - Documentation
Bugs
If you have any problems, please create Issues here
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
onlinesimru-2.0.3.tar.gz
(12.3 kB
view hashes)
Built Distribution
Close
Hashes for onlinesimru-2.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29f0b5c1187676e7471baaf2d992b95cdb764ba003430d6d74cd0cfe98fe8505 |
|
MD5 | a193d39dbb5ee0b49bc55ea2e1dc4ee8 |
|
BLAKE2b-256 | ae5c68f498aff3de066f406ce8769708379742db6ce0fbc767ce53f2a753b07a |