Skip to content

GetProxy

Pavel Kuzmin edited this page Aug 4, 2022 · 14 revisions

[<< go back]

Diagram

Diagram

Methods

$data = (new OnlineSimApi(getenv('APIKEY')))->init()->proxy()->{method}();

Example

$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

state [docs ru] [docs en]

Get proxy list

Params Default Description
$orderby no ASC or DESC

stateOne [docs ru] [docs en]

Get selected proxy

Params Default Description
$tzid no operation tzid

changeIp [docs ru] [docs en]

Change proxy ip

Params Default Description
$tzid no operation tzid

changeType [docs ru] [docs en]

Change proxy type

Params Default Description
$tzid no operation tzid

setComment [docs ru] [docs en]

Add comment to proxy

Params Default Description
$tzid no operation tzid
$comment no comment for proxy^ empty string for delete