PHP code example of tokenly / api-client
1. Go to this page and download the library: Download tokenly/api-client 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/ */
tokenly / api-client example snippets
$api = new TokenlyAPI('https://music.tokenly.com/api/v1');
$albums_array = $api->get('music/catalog/albums');
$api = new TokenlyAPI('https://music.tokenly.com/api/v1', new Tokenly\HmacAuth\Generator(), 'MY_CLIENT_ID', 'MY_CLIENT_SECRET');
$albums_array = $api->get('music/music/mysongs');