PHP code example of uwebpro / scrapoxy-api

1. Go to this page and download the library: Download uwebpro/scrapoxy-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

uwebpro / scrapoxy-api example snippets

=
    use UWebPro\Scrapoxy\Container;
    
    $api = new Container(__DIR__ . '/conf.json');
=
    use UWebPro\Scrapoxy\Container;

    $api = new Container(__DIR__ . '/conf.json', 'http://127.0.0.1:8889);
=
    $api->start(?int $min, ?int $
=
    $api->rescale(int $min, int $
=
     $api->getInstances();
=
    public string $name;
    public string $type;
    public string $status;
    public array $address;
    public string $region;
    public bool $alive;
    public string $useragent;
=
    $instance->remove();
=
    $api->removeInstance($name);
=
    $api->getConfig(); //returns of config array
    
    $api->updateConfig($configArray);