PHP code example of pouler / soundcloud-api
1. Go to this page and download the library: Download pouler/soundcloud-api 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/ */
pouler / soundcloud-api example snippets
= new \Symfony\Component\HttpClient\CurlHttpClient();
$client = new PouleR\SoundCloudAPI\SoundCloudClient($curl);
$api = new \PouleR\SoundCloudAPI\SoundCloudAPI($client);
$api->setClientId('client.id');
// Get information about given user
$api->getUser(123456);
// Get information about current usr
$api->setAccessToken('access.token');
$api->getUser();
var_dump($result);