Skip to main content

Wrapper for onlinesim.ru service.

Project description

Wrapper for onlinesim.ru service.

Installation

> pip install onlinesim

Usage

Importing

from onlinesim import OnlineSim

onlinesim = OnlineSim('<your api key here>')

Simple API usage

Currently wrapper supports all methods specified on official docs page. But not all of specified methods currently supports by server-side, some of them are described with errors or don't work for an unknown reason. Therefore, over time, I'll remove unworked methods and improve the processing of worked methods.

> onlinesim.get_num(country = 49, service = 'whatsapp')

< {'tzid': <received tzid>}

> onlinesim.get_state(tzid = <received tzid>, msg_list = 1)

< [{tzid: <received tzid>, ..., number: '+49xxxxxxxx', msg: [{..., ...}], 'response': 'TZ_NUM_ANSWER'}]

> onlinesim.set_operation_ok(tzid = <received tzid>)

< {'tzid': <received tzid>}

For more information see official docs.

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for onlinesim, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size onlinesim-0.1.0-py3-none-any.whl (3.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page