PHP code example of pspark / sdk
1. Go to this page and download the library: Download pspark/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/ */
pspark / sdk example snippets
declare(strict_types=1);
namespace App;
use PsPark\PsPark;
use PsPark\Config;
$pspark = new PsPark(new Config(jwtKey: 'jwt-key', apiKey: 'api-key'));
$result = $pspark->getBalance(new BalanceRequest(nonce: time()))->asArray();