-
Notifications
You must be signed in to change notification settings - Fork 3
GetProxy
Pavel Kuzmin edited this page Aug 4, 2022
·
14 revisions
$data = (new OnlineSimApi(getenv('APIKEY')))->init()->proxy()->{method}();
$request = new OnlineSimApi('apikey', 'locale', 'dev_id');
$request->init();
$getter = $request->proxy();
$res = $getter->get();
var_dump($res);
$res = $getter->state()->toArray();
// or
$res = $getter->stateOne($res->tzid)->toArray();
var_dump($res);
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