Skip to content

Commit b193c0e

Browse files
Bump spotify-web-api-core from 2021.4.14 to 2021.4.28 (#57)
* Bump spotify-web-api-core from 2021.4.14 to 2021.4.28 Bumps [spotify-web-api-core](https://github.com/sonallux/spotify-web-api) from 2021.4.14 to 2021.4.28. - [Release notes](https://github.com/sonallux/spotify-web-api/releases) - [Commits](sonallux/spotify-web-api@v2021.4.14...v2021.4.28) Signed-off-by: dependabot[bot] <support@github.com> * Run generator Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: sonallux <13821543+sonallux@users.noreply.github.com>
1 parent 6bf37b1 commit b193c0e

File tree

7 files changed

+51
-13
lines changed

7 files changed

+51
-13
lines changed

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.4.14</spotify-web-api-core.version>
23+
<spotify-web-api-core.version>2021.4.28</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/LibraryApi.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ public RemoveEpisodesUserRequest removeEpisodesUser(java.util.List<String> ids)
110110
/**
111111
* <h3>Remove User's Saved Shows</h3>
112112
* <p>Delete one or more shows from current Spotify user's library.</p>
113-
* @param ids <p>A comma-separated list of Spotify IDs for the shows to be deleted from the user's library.</p>
113+
* @param ids <p>A JSON array of the <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify IDs</a>.<br>A maximum of 50 items can be specified in one request. <em>Note: if the <code>ids</code> parameter is present in the query string, any IDs listed here in the body will be ignored.</em></p>
114114
* @return a {@link RemoveShowsUserRequest} object to build and execute the request
115115
*/
116-
public RemoveShowsUserRequest removeShowsUser(String ids) {
116+
public RemoveShowsUserRequest removeShowsUser(java.util.List<String> ids) {
117117
return new RemoveShowsUserRequest(apiClient, ids);
118118
}
119119

@@ -150,10 +150,10 @@ public SaveEpisodesUserRequest saveEpisodesUser(java.util.List<String> ids) {
150150
/**
151151
* <h3>Save Shows for Current User</h3>
152152
* <p>Save one or more shows to current Spotify user's library.</p>
153-
* @param ids <p>A comma-separated list of the <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify IDs</a>. Maximum: 50 IDs.</p>
153+
* @param ids <p>A JSON array of the <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify IDs</a>.<br>A maximum of 50 items can be specified in one request. <em>Note: if the <code>ids</code> parameter is present in the query string, any IDs listed here in the body will be ignored.</em></p>
154154
* @return a {@link SaveShowsUserRequest} object to build and execute the request
155155
*/
156-
public SaveShowsUserRequest saveShowsUser(String ids) {
156+
public SaveShowsUserRequest saveShowsUser(java.util.List<String> ids) {
157157
return new SaveShowsUserRequest(apiClient, ids);
158158
}
159159

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/library/RemoveShowsUserRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public class RemoveShowsUserRequest {
2424
/**
2525
* <h3>Remove User's Saved Shows request</h3>
2626
* @param apiClient <p>The API client</p>
27-
* @param ids <p>A comma-separated list of Spotify IDs for the shows to be deleted from the user's library.</p>
27+
* @param ids <p>A JSON array of the <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify IDs</a>.<br>A maximum of 50 items can be specified in one request. <em>Note: if the <code>ids</code> parameter is present in the query string, any IDs listed here in the body will be ignored.</em></p>
2828
*/
29-
public RemoveShowsUserRequest(ApiClient apiClient, String ids) {
29+
public RemoveShowsUserRequest(ApiClient apiClient, java.util.List<String> ids) {
3030
this.apiClient = apiClient;
3131
this.request = new Request("DELETE", "/me/shows")
32-
.addQueryParameter("ids", String.valueOf(ids))
32+
.addBodyParameter("ids", ids)
3333
;
3434
}
3535

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/apis/library/SaveShowsUserRequest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ public class SaveShowsUserRequest {
2323
/**
2424
* <h3>Save Shows for Current User request</h3>
2525
* @param apiClient <p>The API client</p>
26-
* @param ids <p>A comma-separated list of the <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify IDs</a>. Maximum: 50 IDs.</p>
26+
* @param ids <p>A JSON array of the <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify IDs</a>.<br>A maximum of 50 items can be specified in one request. <em>Note: if the <code>ids</code> parameter is present in the query string, any IDs listed here in the body will be ignored.</em></p>
2727
*/
28-
public SaveShowsUserRequest(ApiClient apiClient, String ids) {
28+
public SaveShowsUserRequest(ApiClient apiClient, java.util.List<String> ids) {
2929
this.apiClient = apiClient;
3030
this.request = new Request("PUT", "/me/shows")
31-
.addQueryParameter("ids", String.valueOf(ids))
31+
.addBodyParameter("ids", ids)
3232
;
3333
}
3434

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/models/Episode.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class Episode extends BaseObject {
1616
*/
1717
public String audioPreviewUrl;
1818
/**
19-
* <p>A description of the episode.</p>
19+
* <p>A description of the episode. HTML tags are stripped away from this field, use <code>html_description</code> field in case HTML tags are needed.</p>
2020
*/
2121
public String description;
2222
/**
@@ -31,6 +31,10 @@ public class Episode extends BaseObject {
3131
* <p>External URLs for this episode.</p>
3232
*/
3333
public ExternalUrl externalUrls;
34+
/**
35+
* <p>A description of the episode. This field may contain HTML tags.</p>
36+
*/
37+
public String htmlDescription;
3438
/**
3539
* <p>The cover art for the episode in various sizes, widest first.</p>
3640
*/
@@ -63,6 +67,10 @@ public class Episode extends BaseObject {
6367
* <p>The precision with which <code>release_date</code> value is known: <code>&quot;year&quot;</code>, <code>&quot;month&quot;</code>, or <code>&quot;day&quot;</code>.</p>
6468
*/
6569
public String releaseDatePrecision;
70+
/**
71+
* <p>Included in the response when a content restriction is applied. See <a href="https://developer.spotify.com/documentation/web-api/reference/#object-episoderestrictionobject">Restriction Object</a> for more details.</p>
72+
*/
73+
public EpisodeRestriction restrictions;
6674
/**
6775
* <p>The user's most recent position in the episode. Set if the supplied access token is a user token and has the scope <code>user-read-playback-position</code>.</p>
6876
*/
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package de.sonallux.spotify.api.models;
2+
3+
import lombok.*;
4+
5+
/**
6+
* <a href="https://developer.spotify.com/documentation/web-api/reference/#object-episoderestrictionobject">EpisodeRestrictionObject</a>
7+
*/
8+
@Getter
9+
@Setter
10+
@NoArgsConstructor
11+
public class EpisodeRestriction {
12+
/**
13+
* <p>The reason for the restriction. Supported values:</p>
14+
* <ul>
15+
* <li><code>market</code> - The content item is not available in the given market.</li>
16+
* <li><code>product</code> - The content item is not available for the user's subscription type.</li>
17+
* <li><code>explicit</code> - The content item is explicit and the user's account is set to not play explicit content.<br>
18+
* Additional reasons may be added in the future. <strong>Note</strong>: If you use this field, make sure that your application safely handles unknown values.</li>
19+
* </ul>
20+
*/
21+
public String reason;
22+
}

spotify-web-api-java/src/main/generated/de/sonallux/spotify/api/models/SimplifiedEpisode.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class SimplifiedEpisode extends BaseObject {
1616
*/
1717
public String audioPreviewUrl;
1818
/**
19-
* <p>A description of the episode.</p>
19+
* <p>A description of the episode. HTML tags are stripped away from this field, use <code>html_description</code> field in case HTML tags are needed.</p>
2020
*/
2121
public String description;
2222
/**
@@ -31,6 +31,10 @@ public class SimplifiedEpisode extends BaseObject {
3131
* <p>External URLs for this episode.</p>
3232
*/
3333
public ExternalUrl externalUrls;
34+
/**
35+
* <p>A description of the episode. This field may contain HTML tags.</p>
36+
*/
37+
public String htmlDescription;
3438
/**
3539
* <p>The cover art for the episode in various sizes, widest first.</p>
3640
*/
@@ -63,6 +67,10 @@ public class SimplifiedEpisode extends BaseObject {
6367
* <p>The precision with which <code>release_date</code> value is known: <code>&quot;year&quot;</code>, <code>&quot;month&quot;</code>, or <code>&quot;day&quot;</code>.</p>
6468
*/
6569
public String releaseDatePrecision;
70+
/**
71+
* <p>Included in the response when a content restriction is applied. See <a href="https://developer.spotify.com/documentation/web-api/reference/#object-episoderestrictionobject">Restriction Object</a> for more details.</p>
72+
*/
73+
public EpisodeRestriction restrictions;
6674
/**
6775
* <p>The user's most recent position in the episode. Set if the supplied access token is a user token and has the scope 'user-read-playback-position'.</p>
6876
*/

0 commit comments

Comments
 (0)