-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Romain Monteil edited this page Jan 3, 2019
·
6 revisions
Before starting using this library, I strongly suggest you to take a look at the Web API References. Moreover, you will need:
- An OAuth access token for the Spotify API. You can get one using this provider
- An HTTP Client implementing the PSR-18, like httplug. If you want to use Guzzle, please see the HTTP Client section to create a wrapper for the PSR-18 Interface.
Basically, you just have to provide the OAuth token and the client as parameters to the Spotify
class and that's it.
$spotify = new \Kerox\Spotify\Spotify($oauthToken, $client);
$response = $spotify->me()->get();