-
Notifications
You must be signed in to change notification settings - Fork 17
GetProxy
Pavel Kuzmin edited this page Feb 6, 2023
·
6 revisions

from onlinesimru import UserService
client = UserService('YOUR_TOKEN')
proxy = client.proxy()from onlinesimru import UserService
def main():
client = UserService('YOUR_TOKEN')
proxy = client.proxy()
get = proxy.get()
print(get)
state = proxy.state()
print(state)
# or
state = proxy.stateOne(tzid)
print(state)
main()Get new proxy
| Params | Default | Description |
|---|---|---|
| $class | days | days or traffic |
| $type | private | proxy type for days |
| $connect | https | connection type for days |
| $count | 1 | days count |
| $operator | any | operator code |
| $country | 7 | country |
| $city | any | city |
| $port_count | 1 | port count for muliport |
| $session | true | session for traffic |
Get proxy list
| Params | Default | Description |
|---|---|---|
| $orderby | no | ASC or DESC |
Get selected proxy
| Params | Default | Description |
|---|---|---|
| $tzid | no | operation tzid |
Change proxy ip
| Params | Default | Description |
|---|---|---|
| $tzid | no | operation tzid |
Change proxy type
| Params | Default | Description |
|---|---|---|
| $tzid | no | operation tzid |
Add comment to proxy
| Params | Default | Description |
|---|---|---|
| $tzid | no | operation tzid |
| $comment | no | comment for proxy^ empty string for delete |
© 2013 - 2020. OnlineSim LLC