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 GetFree, GetRent, GetProxy, GetForward, GetUser, GetNumbers
import asyncio
async def main():
client = GetUser('YOUR_TOKEN')
balance = await client.balance()
print(balance)
asyncio.get_event_loop().run_until_complete(main()) # asyncio.run(main()) для python 3.7+
Example2
from onlinesimru import GetFree, GetRent, GetProxy, GetForward, GetUser, GetNumbers
import asyncio
async def main():
numbers = GetNumbers('YOUR_TOKEN')
input('Press enter if you sms was sent')
tzid = await numbers.get('service')
print(tzid)
code = await numbers.wait_code(tzid)
print(code)
asyncio.get_event_loop().run_until_complete(main()) # asyncio.run(main()) для python 3.7+
Documentation
All documentation is in the wiki of this project - Documentation
Bugs
If you have any problems, please create Issues here https://github.com/s00d/onlinesim-python-api/issues
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-1.0.0.tar.gz
(7.2 kB
view hashes)
Built Distributions
onlinesimru-1.0.0-py3.8.egg
(17.1 kB
view hashes)
Close
Hashes for onlinesimru-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d835b640085449358325b41bb46d5562f46b464a811215091094132fad8b4e7 |
|
MD5 | ae6270a2d625d29965b906a5d074f649 |
|
BLAKE2b-256 | 78dc836a511235f72a0c37a6f77b1c701e4fedfd7c0d2b87c98dc67eae19e4be |