-
Notifications
You must be signed in to change notification settings - Fork 3
GetRent
Pavel Kuzmin edited this page Aug 10, 2020
·
2 revisions
const driver = new OnlineSimDriver('APIKEY').rent().{method}();
const driver = new OnlineSimDriver('APIKEY');
const getter = driver.rent()
getter.tariffs().then((result) => {
console.log(result);
})
getter.get().then((result) => {
console.log(result);
})
getter.state().then((result) => {
console.log(result);
})
// or
getter.stateOne(res.tzid).then((result) => {
console.log(result);
})
...
getter.close(res.tzid).then((result) => {
console.log(result);
})
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