-
Notifications
You must be signed in to change notification settings - Fork 17
Home
Pavel Kuzmin edited this page Feb 6, 2023
·
5 revisions
Wrapper for automatic reception of SMS-messages by onlinesim.ru
You need to create an account HERE and go to profile to get APIKEY
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
from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersService
def main():
client = UserService('YOUR_TOKEN')
balance = client.balance()
print(balance)
main()
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()
All documentation is in the wiki of this project - Documentation
If you have any problems, please create Issues here https://github.com/s00d/onlinesim-python-api/issues
© 2013 - 2020. OnlineSim LLC