- Bump for bad
1.6.0
.
- Deprecated the following methods and replaced them with (6aac5c6):
Request::getReturnAssoc()
->Request::getReturnType()
Request::setReturnAssoc()
->Request::setReturnType(Request::RETURN_ASSOC)
SpotifyWebAPI::getReturnAssoc()
->SpotifyWebAPI::getReturnType()
SpotifyWebAPI::setReturnAssoc()
->SpotifyWebAPI::setReturnType(SpotifyWebAPI::RETURN_ASSOC)
- Added the following constants for use with
setReturnType()
(6aac5c6):Request::RETURN_ASSOC
Request::RETURN_OBJECT
SpotifyWebAPI::RETURN_ASSOC
SpotifyWebAPI::RETURN_OBJECT
- Added docs on how to change the return type. (10b47b5)
- Added a
Request::getLastResponse()
method. (21b72b0) - Added a
SpotifyWebAPI::getRequest
method. (bab8924) - The
$tracks
option forSpotifyWebAPI::deleteUserPlaylistTracks()
now also supports objects. (ce230e7) - Response compression will now be automatically negotiated by the client and server. (3f4a643)
- Made sure
SpotifyWebAPI::getAlbums()
can handle objects for the$options
argument properly. (42cf5d0) - Replaced
for
-loops witharray_map()
. (cfc32b7) - CI tests are run on PHP 7.1. (74cb084)
- Added documentation on error handling. (57ba164)
- Fixed a typo in the
SpotifyWebAPI::reorderUserPlaylistTracks()
docs. (b25dec4) - Fixed a typo in the
SpotifyWebAPI::getLastResponse()
docs. (bdd3ecc)
- Array indexes in SpotifyWebAPI::idToUri() are now always reset to prevent undefined offset errors. (ae8bd96)
- All requests will now be compressed using gzip. (5eeabde)
- Marked
SpotifyWebAPI
class properties asprotected
instead ofprivate
to allow extending. (f52468a) - Marked
Session
class properties asprotected
instead ofprivate
to allow extending. (13e6d53) - Marked
Request
class properties asprotected
instead ofprivate
to allow extending. (be2b3f6) - Moved docs from the
gh-pages
branch intomaster
. (7f638a1)
- Fixed a typo in the
Request::parseBody()
method added in1.3.3
. (13d3b94)
- Moved the
Request
body parsing to its own method. (ef60829) - All arrays are now using the short array syntax. (Full diff)
- Travis tests are now running on PHP nightlies as well. (0cb8420)
- Updated the inline
Request
docs for consistency. (cf09e09)
- Improved the handling of
seed_*
parameters inSpotifyWebAPI::getRecommendations()
. (e6603dc) - Specified better Composer PHP version ranges so we don't break when a new major PHP versions is released. (8dd7749)
- Fixed some minor code style issues in the tests. (de5f7a8)
- Fixed an issue where empty error responses weren't correctly handled. (5f87cc5)
- Fixed an issue where auth call exceptions would sometimes use the wrong message value. (1b7951c)
- The following methods have been added:
SpotifyWebAPI::getMyPlaylists()
(ea8f0a2)
- Updated CA bundle. (e6161fd)
- The following methods have been added:
- This release contains breaking changes, read through this list before updating.
- The following, deprecated, methods have been removed:
- Added docs for the
market
parameter to the following methods: Session::setRefreshToken()
has been removed, a refresh token is now passed directly toSession::refreshAccessToken()
instead. (62e7383)Session::getExpires()
has been removed andSession::getTokenExpiration()
has been added instead, returning the exact token expiration time. (62e7383)- The minimum required PHP version has been increased to 5.5 and support for PHP 7 has been added. (b68ae3b, 6a8ac8d)
- HTTP response headers returned by
Request::send()
andSpotifyWebAPI::getLastResponse()
are now parsed to an array. (9075bd3) - In
SpotifyWebAPI::deleteUserPlaylistTracks()
,position
has been renamed topositions
(note the extra "s"). This change was made to better align with the official Spotify docs. (09f2636) - The
positions
argument toSpotifyWebAPI::deleteUserPlaylistTracks()
now also acceptint
s. (09f2636) SpotifyWebAPI::getArtistTopTracks()
now accepts an array of options. (79543ac)Session::getAuthorizeUrl()
no longer sends empty query strings. (c3e83e8)- Stopped
SpotifyWebAPI::deleteUserPlaylistTracks()
from sending internal, leftover data. (09f2636) - Clarified docs for
SpotifyWebAPI::followPlaylist()
andSpotifyWebAPI::reorderUserPlaylistTracks()
. (09f2636) - Fixed an issue where
SpotifyWebAPI::reorderUserPlaylistTracks()
couldn't reorder the first track. (748592e) - Better tests and coverage. (09f2636)
- The following methods have been added:
SpotifyWebAPI::getUserFollowedArtists()
(b7142fa)
- 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:
- The following method arguments now also accepts strings:
- A new method,
SpotifyWebAPI::getLastResponse()
has been introduced which allows for retrieval of the latest full response from the Spotify API. (9b54074) - Lots of internal changes to increase code consistency and ensure full PSR-2 compatibility. (2b8fda3)
- Better handling of errors from cURL. (c7b5529)
- CA Root Certificates are now included with the library, allowing cURL to always find it. (4ebee9b)
- Fixed an issue where
SpotifyWebAPI::updateUserPlaylist()
would fail withoutname
set. (39232f5)
- This release contains breaking changes, read through this list before updating.
- The following methods have been renamed:
- The following methods have been added:
SpotifyWebAPI::currentUserFollows()
(6dbab19)SpotifyWebAPI::followArtistsOrUsers()
(6dbab19)SpotifyWebAPI::followPlaylist()
(12ff351)SpotifyWebAPI::getCategoriesList()
(f09b4b8)SpotifyWebAPI::getCategory()
(f09b4b8)SpotifyWebAPI::getCategoryPlaylists()
(f09b4b8)SpotifyWebAPI::reorderPlaylistTracks()
(0744904)SpotifyWebAPI::unfollowArtistsOrUsers()
(6dbab19)SpotifyWebAPI::unfollowPlaylist()
(12ff351)SpotifyWebAPI::userFollowsPlaylist()
(4293919)
- The
$redirectUri
argument inSession::__construct()
is now optional. (8591ea8)
- The following methods to control the return type of all API methods were added:
- Added
fields
option toSpotifyWebAPI::getUserPlaylist()
. (c35e44d) - All methods now automatically send authorization headers (if a access token is supplied), increasing rate limits. (a5e95a9)
- 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. (59207ac) - All methods that accepted the
limit
option now uses the correct Spotify default value if nothing has been specified. (a291018) - It's now possible to specify your own
Request
object inSpotifyWebAPI
andSession
constructors. (59207ac) SpotifyWebAPI::getArtistAlbums()
now supports thealbum_type
option. (1bd7014)Request::send()
will only modify URLs when needed. (0241f3b)
- The following methods have been added:
- The following options has been added:
- Better handling of HTTP response codes in
Request::send()
. (351be62) - Fixed a bug where
SpotifyWebAPIException
messages weren't correctly set. (c764894) - Fixed various issues related to user playlists. (9929d45)
- 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. (f1f14bd)
deletePlaylistTrack()
has been renamed todeletePlaylistTracks()
. (e54d703)- When something goes wrong, a
SpotifyWebAPIException
is thrown. (d98bb8a) - The
SpotifyWebAPI
methods are no longer static, you'll need to instantiate the class now. (67c4e8b)
- The following methods have been added:
SpotifyWebAPI::getMySavedTracks()
(30c865d)SpotifyWebAPI::myTracksContains()
(3f99367)SpotifyWebAPI::addMyTracks()
(20d80ef)SpotifyWebAPI::deleteMyTracks()
(ee17c69)SpotifyWebAPI::updateUserPlaylist()
(5d5874d)SpotifyWebAPI::deletePlaylistTrack()
(3b17104)SpotifyWebAPI::deletePlaylistTrack()
(3b5e23a)
- Added support for the Client Credentials Authorization Flow. (0892e59)
- Added support for more HTTP methods in
Request::send()
. (d4df8c1)
- The following methods have been added:
SpotifyWebAPI::getArtistRelatedArtists()
(5a3ea0e)
- Added
offset
andlimit
options forSpotifyWebAPI::getAlbumTracks()
andSpotifyWebAPI::getArtistAlbums()
. (21c98ec, 8b0c417) - Replaced PSR-0 autoloading with PSR-4 autoloading. (40878a9)
- Changed method signature of
Session::getAuthorizeUrl()
and addedshow_dialog
option. (8fe7a6e, 57c36af) - Added missing returns for
SpotifyWebAPI::getUserPlaylist()
andSpotifyWebAPI::getUserPlaylistTracks()
. (b8c87d7) - Fixed a bug where search terms were double encoded. (9f1eec6)
- Initial release