-
Notifications
You must be signed in to change notification settings - Fork 1
GetRent
Pavel Kuzmin edited this page Aug 10, 2020
·
3 revisions

require 'onlinesim'
driver = OnlineSim::Driver.new(:apikey => 'TOKEN').rentrequire 'onlinesim'
# ...
driver = OnlineSim::Driver.new(:apikey => 'TOKEN').rent
tariffs = driver.tariffs()
get = driver.get()
state = driver.state()
# or
state = driver.stateone(tzid)
close = driver.close(tzid)Get new rent number
| Params | Default | Description |
|---|---|---|
| $country | 7 | country |
| $days | 1 | count rent days |
| $extension | false. | auto extension |
Get numbers list
Get selected number
| Params | Default | Description |
|---|---|---|
| $tzid | no | oreration tzid |
Extend user number
| Params | Default | Description |
|---|---|---|
| $tzid | no | operation tzid |
| $days | 1 | days count |
Reload selected port
| Params | Default | Description |
|---|---|---|
| $tzid | no | operation tzid |
Rent tariffs
Close selected number
| Params | Default | Description |
|---|---|---|
| $tzid | no | operation tzid |
© 2013 - 2020. OnlineSim LLC