PHP code example of torbox / sdk
1. Go to this page and download the library: Download torbox/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/ */
torbox / sdk example snippets
new Client(accessToken: "YOUR_ACCESS_TOKEN");
sdk.setAccessToken("YOUR_ACCESS_TOKEN")
$sdk = new Client(timeout: 1000);
use TorboxApi\Client;
$sdk = new Client(accessToken: 'YOUR_TOKEN');
$response = $sdk->general->getUpStatus();
print_r($response);