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.4.tar.gz
(12.3 kB
view details)
Built Distribution
File details
Details for the file onlinesimru-2.0.4.tar.gz
.
File metadata
- Download URL: onlinesimru-2.0.4.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 147b2494cf5d7ebde2d1f38568099c46aaa1290a02e14285a5b96cb53826266d |
|
MD5 | 0d52acb5d34e4941527924e7a18d1c87 |
|
BLAKE2b-256 | dd216e10f9c96e001de22e7e1ebd53555f2a96eb1d8d63db07fac6bef8587ef5 |
File details
Details for the file onlinesimru-2.0.4-py3-none-any.whl
.
File metadata
- Download URL: onlinesimru-2.0.4-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b848335889eb5b80872e77212ca0e699fe5dc50658bfcd1af98c2d0ad0b4cff7 |
|
MD5 | 65fb7ebc180abf9be17d64d53d16a8a7 |
|
BLAKE2b-256 | 9276cf5d2ef54108f7ef8b79bc6d77e1e0ee603d6de01748cadf51d2b640b0fd |