Skip to content

Commit 44a94c0

Browse files
committed
Update to spotify-web-api-core 2021.6.17
1 parent 8004f4a commit 44a94c0

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## [Unreleased]
8+
- Update to spotify-web-api-core `2021.6.17`
9+
- Fix response type of `ReplacePlaylistsTracksRequest` from `Void` to `SnapshotId`.
810

911
## [2.1.0]
1012
- Update to spotify-web-api-core `2021.5.1`

spotify-web-api-java-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<url>https://github.com/sonallux/spotify-web-api-java</url>
2121

2222
<properties>
23-
<spotify-web-api-core.version>2021.6.4</spotify-web-api-core.version>
23+
<spotify-web-api-core.version>2021.6.17</spotify-web-api-core.version>
2424
<guava.version>30.1.1-jre</guava.version>
2525
<picocli.version>4.6.1</picocli.version>
2626
<flexmark.version>0.62.2</flexmark.version>

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/playlists/ReorderPlaylistsTracksRequest.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@
1313
* <code>playlist-modify-public, playlist-modify-private</code>
1414
*
1515
* <h3>Response</h3>
16-
* <p>On a successful <strong>reorder</strong> operation, the response body contains a <code>snapshot_id</code> in JSON format and the HTTP status code in the response header is <code>200</code> OK. The <code>snapshot_id</code> can be used to identify your playlist version in future requests.</p>
17-
* <p>On error, the header status code is an <a href="https://developer.spotify.com/documentation/web-api/#response-status-codes">error code</a>, the response body contains an <a href="https://developer.spotify.com/documentation/web-api/#response-schema">error object</a>, and the existing playlist is unmodified. Trying to set an item when you do not have the user's authorization returns error <code>403</code> Forbidden.</p>
16+
* <p>On a successful <strong>reorder</strong> operation, the response body contains a <code>snapshot_id</code> in JSON format
17+
* and the HTTP status code in the response header is <code>200</code> OK. The <code>snapshot_id</code>
18+
* can be used to identify your playlist version in future requests.</p>
19+
* <p>On error, the header status code is an <a href="https://developer.spotify.com/documentation/web-api/#response-status-codes">error code</a>,
20+
* the response body contains an <a href="https://developer.spotify.com/documentation/web-api/#response-schema">error object</a>,
21+
* and the existing playlist is unmodified.
22+
* Trying to set an item when you do not have the user's authorization returns error <code>403</code> Forbidden.</p>
1823
*/
1924
public class ReorderPlaylistsTracksRequest {
2025
private static final TypeReference<SnapshotId> RESPONSE_TYPE = new TypeReference<>() {};

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/playlists/ReplacePlaylistsTracksRequest.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,15 @@
1313
* <code>playlist-modify-public, playlist-modify-private</code>
1414
*
1515
* <h3>Response</h3>
16-
* <p>On a successful <strong>replace</strong> operation, the HTTP status code in the response header is <code>201</code> Created.</p>
17-
* <p>On error, the header status code is an <a href="https://developer.spotify.com/documentation/web-api/#response-status-codes">error code</a>, the response body contains an <a href="https://developer.spotify.com/documentation/web-api/#response-schema">error object</a>, and the existing playlist is unmodified. Trying to set an item when you do not have the user's authorization returns error <code>403</code> Forbidden.</p>
16+
* <p>On a successful <strong>replace</strong> operation, the HTTP status code in the response header is <code>201</code>
17+
* Created.</p>
18+
* <p>On error, the header status code is an <a href="https://developer.spotify.com/documentation/web-api/#response-status-codes">error code</a>,
19+
* the response body contains an <a href="https://developer.spotify.com/documentation/web-api/#response-schema">error object</a>,
20+
* and the existing playlist is unmodified.
21+
* Trying to set an item when you do not have the user's authorization returns error <code>403</code> Forbidden.</p>
1822
*/
1923
public class ReplacePlaylistsTracksRequest {
20-
private static final TypeReference<Void> RESPONSE_TYPE = new TypeReference<>() {};
24+
private static final TypeReference<SnapshotId> RESPONSE_TYPE = new TypeReference<>() {};
2125
private final ApiClient apiClient;
2226
private final Request request;
2327

@@ -38,7 +42,7 @@ public ReplacePlaylistsTracksRequest(ApiClient apiClient, String playlistId, jav
3842
/**
3943
* Build the request into an executable call
4044
*/
41-
public ApiCall<Void> build() {
45+
public ApiCall<SnapshotId> build() {
4246
return apiClient.createApiCall(request, RESPONSE_TYPE);
4347
}
4448
}

0 commit comments

Comments
 (0)