PHP code example of affiliatecom / zeroclick-sdk-sellers-php
1. Go to this page and download the library: Download affiliatecom/zeroclick-sdk-sellers-php 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/ */
affiliatecom / zeroclick-sdk-sellers-php example snippets
use AffiliateCom\ZeroClick\Sellers\Http\GuardMiddleware;
use AffiliateCom\ZeroClick\Sellers\Usage\UsageItem;
// $productWatch is your own PSR-15 handler; $client is the SellerClient.
$guard = new GuardMiddleware($client, 'product-watch', [UsageItem::of('requests', 1)]);
$response = $guard->process($request, $productWatch);