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

require 'onlinesim'
driver = OnlineSim::Driver.new(:apikey => 'TOKEN').proxyrequire 'onlinesim'
# ...
driver = OnlineSim::Driver.new(:apikey => 'TOKEN').proxy
get = driver.get()
state = driver.state()
# or
state = driver.stateone(tzid)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