-
-
Notifications
You must be signed in to change notification settings - Fork 9
Service Artists
Kiril Kirkov edited this page Apr 30, 2020
·
3 revisions
$spotifyWebApi = new SpotifyWebApi([
'clientId' => 'SPOTIFY_CLIENT_ID',
'clientSecret' => 'SPOTIFY_CLIENT_SECRET',
'accessToken' => 'ACCESS_TOKEN',
'refreshToken' => 'SPOTIFY_API_REFRESH_TOKEN',
]);
equal to - https://developer.spotify.com/documentation/web-api/reference/artists/get-artist/
$response = $spotifyWebApi->api()->provider(
\SpotifyWebAPI\SpotifyServices::artists()::getArtist('4k1ELeJKT1ISyDv8JivPpB')
)->getResult();
equal to - https://developer.spotify.com/documentation/web-api/reference/artists/get-artists-albums/
$response = $spotifyWebApi->api()->provider(
\SpotifyWebAPI\SpotifyServices::artists()::getArtistAlbums('4k1ELeJKT1ISyDv8JivPpB')
)->getResult();
equal to - https://developer.spotify.com/documentation/web-api/reference/artists/get-artists-top-tracks/
$response = $spotifyWebApi->api()->provider(
\SpotifyWebAPI\SpotifyServices::artists()::getArtistTopTracks('4k1ELeJKT1ISyDv8JivPpB')
)->getResult();
equal to - https://developer.spotify.com/documentation/web-api/reference/artists/get-related-artists/
$response = $spotifyWebApi->api()->provider(
\SpotifyWebAPI\SpotifyServices::artists()::getArtistRelatedArtists('4k1ELeJKT1ISyDv8JivPpB')
)->getResult();
equal to - https://developer.spotify.com/documentation/web-api/reference/artists/get-several-artists/
$response = $spotifyWebApi->api()->provider(
\SpotifyWebAPI\SpotifyServices::artists()::getArtists(['4k1ELeJKT1ISyDv8JivPpB', '5eKLa1xyHLq8ERWmT1CRHj'])
)->getResult();