Release 2.0.0
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
tode.sonallux.spotify
- Renamed java package name from
de.jsone_studios.wrapper.spotify
tode.sonallux.spotify.api
- Removed
SpotifyApi
interface in favour of an enhancedSpotifyWebApi
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 anexecuteCall()
method on the newApiCall
class - Removed
SpotifyApi.callApiAndReturnBody()
in favour of anexecute()
method on the newApiCall
class - Added support for all authorization flows. See here for more details.
- Bump minimum required Java version to Java 11