-
Notifications
You must be signed in to change notification settings - Fork 17
GetRent
Pavel Kuzmin edited this page Feb 6, 2023
·
6 revisions
from onlinesimru import UserService
client = UserService('YOUR_TOKEN')
rent = client.rent()
from onlinesimru import UserService
def main():
client = UserService('YOUR_TOKEN')
rent = client.rent()
tariffs = rent.get_tariffs()
print(tariffs)
get = rent_new_number()
print(get)
state = rent.get_numbers()
print(state)
# or
state = rent.get_number(tzid)
print(state)
...
close = rent.revoke_number(tzid)
close(state)
main()
Get new rent number
Params | Default | Description |
---|---|---|
$country | 7 | country |
$days | 1 | count rent days |
$extension | false. | auto extension |
get_numbers [[docs ru](https://onlinesim.ru/docs/api/ru/rent/getRentState] [docs en]
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 |
Rent tariffs
Close selected number
Params | Default | Description |
---|---|---|
$tzid | no | operation tzid |
© 2013 - 2020. OnlineSim LLC