1. Go to this page and download the library: Download novada/sdk 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/ */
novada / sdk example snippets
declare(strict_types=1);
roxy\Dto\ListWhitelistParams;
use Novada\Proxy\Product;
$client = new Client('YOUR_API_KEY'); // or null to read NOVADA_API_KEY
$list = $client->proxy->whitelist->list(new ListWhitelistParams(
product: Product::Residential,
));
printf("whitelist total=%d\n", $list->total);
use Novada\Client;
use Novada\ClientConfig;
$client = new Client('API_KEY', new ClientConfig(
baseUrl: 'https://api-m.novada.com',
webUnblockerUrl: 'https://webunlocker.novada.com',
scraperUrl: 'https://scraper.novada.com',
timeout: 30.0,
maxRetries: 2,
httpClient: $psr18Client, // optional: inject your own PSR-18 client
requestFactory: $psr17Factory, // optional: inject your own PSR-17 request factory
streamFactory: $psr17Factory, // optional: inject your own PSR-17 stream factory
userAgent: 'my-app/1.0',
));