spotify

A Go wrapper for the Spotify Web API

APACHE-2.0 License

Stars
1.4K
Committers
74

Bot releases are visible (Hide)

spotify - v2.4.2 Latest Release

Published by strideynet 6 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/zmb3/spotify/compare/v2.4.1...v2.4.2

spotify - v2.4.1

Published by strideynet 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/zmb3/spotify/compare/v2.4.0...v2.4.1

spotify - v2.4.0

Published by strideynet about 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/zmb3/spotify/compare/v2.3.1...v2.4.0

Breaking Changes

PlaybackOffset.Position has changed from int to *int. This is to account for a behaviour in the Spotify API where the position can be specified separately inside the URI. See https://github.com/zmb3/spotify/pull/220/files for specific details.

spotify - V2.3.1

Published by strideynet almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/zmb3/spotify/compare/v2.3.0...v2.3.1

spotify - V2.3.0

Published by strideynet about 2 years ago

This release includes no breaking API changes.

What's Changed

New Contributors

Full Changelog: https://github.com/zmb3/spotify/compare/v2.2.1...v2.3.0

spotify - V2.2.1: Minor fixes

Published by strideynet over 2 years ago

Fixes GetPlaylistItems to better handle local tracks.

Also includes additional notes in README re: markets, and expands one of the example scripts.

spotify - V2.1.0: Add GetPlaylistItems

Published by strideynet over 2 years ago

This release includes no breaking API changes. It does however deprecate GetPlaylistTracks in favour of GetPlaylistItems, as per changes to the Spotify API that this endpoint can now return tracks or episodes. Please switch to this new method where possible.

Many thanks to @xonstone for this change.

spotify - V2.0.1: Auth Tweaks

Published by strideynet almost 3 years ago

This release includes no breaking API changes. There is 1 change that users should be aware of, and let me know if they experience any changes in behaviour (https://github.com/zmb3/spotify/pull/179). We no longer override the HTTP client used for oauth, and this means it will now use the default Go HTTP client. If you environment includes variables that control the configuration of this client, you may experience changes in behaviour.

Changes

Revert to default HTTP client for oauth

Originally, Spotify's API did not work properly with HTTP/2, so we overrode the client here to ensure that we would not attempt to use HTTP/2. It appears this is now correctly supported, so this override is redundant.

Many thanks to @StalkR for this change.

https://github.com/zmb3/spotify/pull/179

Introduce a method for getting the current API token

The client now includes a .Token() method for returning the current token being used.

Many thanks to @elivlo for this change.

https://github.com/zmb3/spotify/pull/170

spotify - V2: Significant refactor

Published by strideynet about 3 years ago

It's been a while since the Library has had a significant overhaul.

V2 brings:

  • Support for context.Context across all actions
  • Functional options for the creation of the Client
  • More modular auth support, allowing users to inject a HTTP client that meets their authentication needs.
spotify - Introduce collaborative playlist support

Published by strideynet over 3 years ago

Thanks to @samuelrey for this PR :)

Introduces a new method for creating a collaborative playlist.

spotify - v1.2.0

Published by strideynet over 3 years ago

Support for GetShow and GetShowEpisodes introduced, many thanks to @davidiola

spotify -

Published by strideynet over 3 years ago

spotify - V1.1.1: Fixes

Published by strideynet over 3 years ago

This release contains no breaking changes!

Changes

Change the page implementation to use a pointer receiver for panic safety

Previously, a value receiver was used which allowed developers to pass a value into the NextPage and PreviousPage methods. This would result in a panic due to the underlying implementation relying on reflection. This now is impossible, and code that could cause a panic will now no longer compile.

Many thanks to @klokare for the detail report

spotify - V1.1.0

Published by strideynet over 3 years ago

This release contains no breaking changes!

Changes

Allow Auth client Exchange() method to take variadic oauth2.AuthCodeOption

So we can set "code_verifier" param url without needing an
HTTP request.

Courtesy of @ialbors