PHP code example of gquemener / 7digital-client
1. Go to this page and download the library: Download gquemener/7digital-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/ */
gquemener / 7digital-client example snippets
evenDigital\ApiClient;
$client = new ApiClient(/** consumer_key */);
$track = $client->getTrackService(); //Services artist, release and tag are also accessible the same way
$results = $track->search('Queen'); // Use the method name as described in the 7digital api documentation
// (ex: http://api.7digital.com/1.2/static/documentation/7digitalpublicapi.html#track/search)
// Required argument can be passed directly
$results = $track->search(array( // Other arguments must be passed as a hash
'q' => 'Queen', // Method result will be an instance of \SimpleXMLElement (http://fr2.php.net/simplexmlelement)
'pageSize' => 1,
));