You need to call a simple request from the soundcloud API using a wrapper

I use the main soundcloud shell (https://github.com/mptre/php-soundcloud) to try to pull tracks from my account to my website. I had everything that was fine, but just by accessing the request (my username has changed and is not unique, so I need to change the request). Therefore, I need to request exactly this "https://api.soundcloud.com/users/isound604/tracks.json", and if you close the API console, you will see that it returns my tracks.

My problem is that I do not know how to make this request with a wrapper. I used:

$string = $soundcloud->get('tracks', array('q' => 'beatmanshan', 'order' => 'created_at')); 

but the new request does not work in this function. Can anyone shed some light on this question? Please thank you in advance! Let me know if you need more information.

+4
source share
1 answer

Have you already authenticated using api? To check

 $my_details = json_decode($soundcloud->get('me')); 

You must return your account information

If you tried

 $string = $soundcloud->get('users/isound604/tracks', array('order' => 'created_at')); 
+1
source

All Articles