1. Go to this page and download the library: Download ocolin/tarana-tcs 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/ */
ocolin / tarana-tcs example snippets
// Manual for demonstration
$_ENV['TARANA_TCS_API_TOKEN'] = 'abcdefg';
$_ENV['TARANA_TCS_API_HOST'] = 'https://api.tcs.taranawireless.com';
$taranaTCS = new Ocolin\TaranaTCS\TaranaTCS();
$taranaTCS = new Ocolin\TaranaTCS\TaranaTCS(
host: 'https://api.tcs.taranawireless.com',
token: 'abcdefg'
);
// End point will be /v2/network/radios/abcdefg
$output = $taranaTCS->get(
endpoint: '/v2/network/radios/{serialNumber}',
query: [ 'serialNumber' => 'abcdefg' ]
);