-
Notifications
You must be signed in to change notification settings - Fork 17
GetRent
Pavel Kuzmin edited this page Aug 5, 2020
·
6 revisions
from onlinesimru import GetRent
from onlinesimru import GetRent
import asyncio
async def main():
client = GetRent('YOUR_TOKEN')
tariffs = await client.tariffs()
print(tariffs)
get = await client.get()
print(get)
state = await client.state()
print(state)
# or
state = await client.stateOne(tzid)
print(state)
...
close = await client.close(tzid)
close(state)
asyncio.get_event_loop().run_until_complete(main())
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