PHP code example of zhuk / payeer-trade-api
1. Go to this page and download the library: Download zhuk/payeer-trade-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/ */
zhuk / payeer-trade-api example snippets
d = getenv('API_ID') ?: 'test';
$apiSecret = getenv('API_SECRET') ?: 'test';
$httpClient = new GuzzleHttp\Client();
$httpFactory = new GuzzleHttp\Psr7\HttpFactory();
$signer = new Zhuk\Payeer\TradeApi\HmacHeaderSigner((string) $apiSecret);
$api = new Zhuk\Payeer\TradeApi\HttpTradeClient(
$httpClient,
$httpFactory,
$httpFactory,
$httpFactory,
$signer,
(string) $appId
);
$response = $api->getAllOrders();
var_dump($response);