Skip to content
This repository has been archived by the owner on Feb 2, 2020. It is now read-only.

retxxxirt/onlinesim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages