Skip to content
s00d edited this page Nov 2, 2021 · 2 revisions

Onlinesim JAVA 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 maven:

<dependecy>
  <groupId>ru.onlinesim</groupId>
  <artifactId>OnlineSimApi</artifactId>
  <version>1.0.0</version>
</dependecy>

or gradle

dependencies {
	// ....
	implementation "ru.onlinesim.OnlineSimApi:gson:1.0.0"

Basic Usage

import ru.onlinesim.OnlineSimApi;

public class Run {
	public static void main(String[] args) {
		OnlineSimApi loader = new OnlineSimApi('apikey', 'dev_id', 'locale');
		Driver user = loader.{apiname}();
	}
}

Params

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

API

GetUser API

GetNumbers API

GetRent API

GetProxy API

GetFree API

Clone this wiki locally