Skip to content
Pavel Kuzmin edited this page Aug 10, 2020 · 7 revisions

Onlinesim JS API

Wrapper for automatic reception of SMS-messages by onlinesim.ru

Where apikey?

You need to create an account HERE and go to profile to get APIKEY

Installation

Require this package in your package.json or install it by running:

npm install onlinesim-js-api

Basic Usage

import OnlineSimDriver from "onlinesim-js-api";
...
const apikey = 'apikey';
const driver = new OnlineSimDriver(apikey)
$api - driver.{apiname}().{method}().then((result)....

Params

Name Description
apikey your apikey from onlinesim.ru
lang locale ru or en, not require
dev_id your dev_id, not require

API

GetUser API

GetNumbers API

GetRent API

GetProxy API

GetForward API

GetFree API