https://github.com/s00d/onlinesim-python-api
Python Wrapper for automatic reception of SMS-messages by onlinesim.ru
https://github.com/s00d/onlinesim-python-api
api onlinesim proxy python rent sms sms-api
Last synced: 6 months ago
JSON representation
Python Wrapper for automatic reception of SMS-messages by onlinesim.ru
- Host: GitHub
- URL: https://github.com/s00d/onlinesim-python-api
- Owner: s00d
- License: apache-2.0
- Created: 2020-08-05T20:41:29.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T09:06:28.000Z (about 2 years ago)
- Last Synced: 2024-11-19T00:49:37.591Z (6 months ago)
- Topics: api, onlinesim, proxy, python, rent, sms, sms-api
- Language: Python
- Homepage: https://onlinesim.ru
- Size: 43.9 KB
- Stars: 30
- Watchers: 5
- Forks: 17
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Onlinesim Python API
Wrapper for automatic reception of SMS-messages by onlinesim.ru
[](https://pypi.python.org/pypi/onlinesimru)
### 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```python
from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersServicedef main():
client = UserService('YOUR_TOKEN')
balance = client.balance()
print(balance)main()
```### Example2
```python
from onlinesimru import FreeNumbersService, RentNumbersService, ProxyService, UserService, NumbersServicedef 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
```python
# multiple driver using
from onlinesimru import Driverdef 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](https://github.com/s00d/onlinesim-python-api/wiki)**
## Bugs
If you have any problems, please create Issues [here](https://github.com/s00d/onlinesim-python-api/issues)