vasilevit/proxy6-api

代理服务API库

0.1.7 2018-05-06 18:39 UTC

This package is auto-updated.

Last update: 2024-09-13 09:54:09 UTC


README

用于与代理服务工作的库

  • proxy6.net

版本

当前版本 0.1.7

通过composer安装

composer require vasilevit/proxy6-api

用法

$api = new \ProxyAPI\Proxy\Proxy6();
$api->setApiKey('api_key');

示例

$proxies = $api->getProxy(\ProxyAPI\Proxy\ProxyState::ACTIVE);
    
$response = $api->buy(1, 7, "ru");
$bought_proxy = $response->list[0];
    
$api->prolong(14, [1, 4, 5]);
    
$response = $api->check($_POST['proxy']);
if ($response->proxy_status) {
    //active proxy
}