- The following methods has been added:
SpotifyWebAPI::getUserFollowedArtists()
- This release contains breaking changes, read through this list before updating.
- As we're moving closer to 1.0 the work to make the API more consistent and stable is continuing. This time with an effort to make method names and signatures more consistent.
- Thus, the following methods have been renamed and the old names are deprecated:
SpotifyWebAPI::deletePlaylistTracks()
->SpotifyWebAPI::deleteUserPlaylistTracks()
SpotifyWebAPI::reorderPlaylistTracks
->SpotifyWebAPI::reorderUserPlaylistTracks()
SpotifyWebAPI::replacePlaylistTracks()
->SpotifyWebAPI::replaceUserPlaylistTracks()
- The following method arguments now also accepts strings:
fields
inSpotifyWebAPI::getUserPlaylistTracks()
.fields
inSpotifyWebAPI::getUserPlaylist()
.album_type
inSpotifyWebAPI::getArtistAlbums()
.ids
inSpotifyWebAPI::userFollowsPlaylist()
.
- A new method,
SpotifyWebAPI::getLastResponse()
has been introduced which allows for retrieval of the latest full response from the Spotify API. - Lots of internal changes to increase code consistency and ensure full PSR-2 compatibility.
- Better handling of errors from cURL.
- CA Root Certificates are now included with the library, allowing cURL to always find it. #32.
- Fixed an issue where
SpotifyWebAPI::updateUserPlaylist()
would fail withoutname
set.
- This release contains breaking changes, read through this list before updating.
- The following methods have been renamed:
Session::refreshToken()
->Session::refreshAccessToken()
Session::requestToken()
->Session::requestAccessToken()
- The following methods has been added:
SpotifyWebAPI::currentUserFollows()
SpotifyWebAPI::followArtistsOrUsers()
SpotifyWebAPI::followPlaylist()
SpotifyWebAPI::getCategoriesList()
SpotifyWebAPI::getCategory()
SpotifyWebAPI::getFeaturedPlaylists()
SpotifyWebAPI::reorderPlaylistTracks()
SpotifyWebAPI::unfollowArtistsOrUsers()
SpotifyWebAPI::unfollowPlaylist()
SpotifyWebAPI::userFollowsPlaylist()
- The
$redirectUri
argument inSession::__construct()
is now optional.
- The following methods to control the return type of all API methods were added:
Request::getReturnAssoc()
Request::setReturnAssoc()
SpotifyWebAPI::getReturnAssoc()
SpotifyWebAPI::setReturnAssoc()
- Added
fields
option toSpotifyWebAPI::getUserPlaylist()
. - All methods now automatically send authorization headers (if a access token is supplied), increasing rate limits.
- Lots of inline documentation improvements.
- This release contains breaking changes, read through this list before updating.
- All static methods on
Request
have been removed.Request
now needs to be instantiated before using. - All methods that accepted the
limit
option now uses the correct Spotify default value if nothing has been specified. - It's now possible to specify your own
Request
object inSpotifyWebAPI
andSession
constructors. SpotifyWebAPI::getArtistAlbums()
now supports thealbum_type
option.Request::send()
will only modify URLs when needed.
- The following methods has been added
Session::getExpires()
Session::getRefreshToken()
Session::setRefreshToken()
SpotifyWebAPI::getFeaturedPlaylists()
SpotifyWebAPI::getNewReleases()
- The following options has been added
offset
andlimit
toSpotifyWebAPI::getUserPlaylists()
offset
andlimit
toSpotifyWebAPI::getUserPlaylistTracks()
fields
toSpotifyWebAPI::getUserPlaylistTracks()
market
toSpotifyWebAPI::getArtistAlbums()
market
toSpotifyWebAPI::search()
- Better handling of HTTP response codes in
Request::send()
. - Fixed a bug where
SpotifyWebAPIException
messages weren't correctly set. - Fixed various issues related to user playlists.
- This release contains lots of breaking changes, read through this list before updating.
- All methods which previously required a Spotify URI now just needs an ID.
deletePlaylistTrack()
has been renamed todeletePlaylistTracks()
.- When something goes wrong, a
SpotifyWebAPIException
is thrown. - The
SpotifyWebAPI
methods are no longer static, you'll need to instantiate the class now.
- Added new methods to
- Get Current User’s Saved Tracks.
- Check Current User’s Saved Tracks.
- Save Tracks for Current User.
- Remove Tracks for Current User.
- Change a Playlist’s Details.
- Remove Tracks from a Playlist.
- Replace a Playlist’s Tracks.
- Added support for the Client Credentials Authorization Flow.
- Added support for more HTTP methods in
Request::send()
.
- Added Artist’s Related Artists endpoint.
- Added
offset
andlimit
options forSpotifyWebAPI::getAlbumTracks()
andSpotifyWebAPI::getArtistAlbums()
. - Replaced PSR-0 autoloading with PSR-4 autoloading.
- Changed method signature of
Session::getAuthorizeUrl()
and addedshow_dialog
option. - Added missing returns for
SpotifyWebAPI::getUserPlaylist()
andSpotifyWebAPI::getUserPlaylistTracks()
. - Fixed a bug where search terms were double encoded.
- Initial release