Skip to content

Release 2.0.0

Compare
Choose a tag to compare
@sonallux sonallux released this 14 Apr 14:43
· 249 commits to main since this release

Complete rewrite of the library. The models and endpoints are generated from output of my spotify-web-api-parser which generates a machine-readable format of the Spotify Web API Reference. This results in a lot of breaking changes around naming of objects, properties, endpoints and parameters.

Other notable changes:

  • Renamed the maven groupId from de.jsone-studios to de.sonallux.spotify
  • Renamed java package name from de.jsone_studios.wrapper.spotify to de.sonallux.spotify.api
  • Removed SpotifyApi interface in favour of an enhanced SpotifyWebApi class
  • SpotifyWebApi uses the builder pattern to create an instance
  • Replaced retrofit with a custom wrapper around OkHttp
  • Requests are now created with a builder style api for optional parameters. For example:
ApiCall<?> call1 = spotifyWebApi.getXApi().getX("requiredParam").build();
ApiCall<?> call2 = spotifyWebApi.getXApi().getX("requiredParam").optionalParam1("Y").build();
  • Removed SpotifyApi.callApi() in favour of an executeCall() method on the new ApiCall class
  • Removed SpotifyApi.callApiAndReturnBody() in favour of an execute() method on the new ApiCall class
  • Added support for all authorization flows. See here for more details.
  • Bump minimum required Java version to Java 11