You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Get a list of Spotify featured playlists (shown, for example, on a Spotify player’s ‘Browse’ tab).
44
+
*
45
+
* @param limit The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50.
46
+
* @param offset The index of the first album to return. Default: 0 (i.e., the first album). Use with limit to get the next set of albums.
47
+
* @param locale The desired language, consisting of a lowercase ISO 639-1 language code and an uppercase ISO 3166-1 alpha-2 country code, joined by an underscore. For example: es_MX, meaning “Spanish (Mexico)”.
48
+
* Provide this parameter if you want the results returned in a particular language (where available).
49
+
* Note that, if locale is not supplied, or if the specified language is not available,
50
+
* all strings will be returned in the Spotify default language (American English. The locale parameter, combined with the country parameter, may give odd results if not carefully matched.
51
+
* For example country=SE&locale=de_DE will return a list of categories relevant to Sweden but as German language strings.
52
+
* @param market Provide this parameter if you want the list of returned items to be relevant to a particular country.
53
+
* If omitted, the returned items will be relevant to all countries.
54
+
* @param timestamp Use this parameter to specify the user’s local time to get results tailored for that specific
55
+
* date and time in the day. If not provided, the response defaults to the current UTC time.
56
+
*
57
+
* @throws BadRequestException if filter parameters are illegal or [locale] does not exist
* Get a list of categories used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).
70
+
*
71
+
* @param limit The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50.
72
+
* @param offset The index of the first album to return. Default: 0 (i.e., the first album). Use with limit to get the next set of albums.
73
+
* @param locale The desired language, consisting of a lowercase ISO 639-1 language code and an uppercase ISO 3166-1 alpha-2 country code, joined by an underscore. For example: es_MX, meaning “Spanish (Mexico)”.
74
+
* Provide this parameter if you want the results returned in a particular language (where available).
75
+
* Note that, if locale is not supplied, or if the specified language is not available,
76
+
* all strings will be returned in the Spotify default language (American English. The locale parameter, combined with the country parameter, may give odd results if not carefully matched.
77
+
* For example country=SE&locale=de_DE will return a list of categories relevant to Sweden but as German language strings.
78
+
* @param market Provide this parameter if you want the list of returned items to be relevant to a particular country.
79
+
* If omitted, the returned items will be relevant to all countries.
* Get a single category used to tag items in Spotify (on, for example, the Spotify player’s “Browse” tab).
90
+
*
91
+
* @param locale The desired language, consisting of a lowercase ISO 639-1 language code and an uppercase ISO 3166-1 alpha-2 country code, joined by an underscore. For example: es_MX, meaning “Spanish (Mexico)”.
92
+
* Provide this parameter if you want the results returned in a particular language (where available).
93
+
* Note that, if locale is not supplied, or if the specified language is not available,
94
+
* all strings will be returned in the Spotify default language (American English. The locale parameter, combined with the country parameter, may give odd results if not carefully matched.
95
+
* For example country=SE&locale=de_DE will return a list of categories relevant to Sweden but as German language strings.
96
+
* @param market Provide this parameter if you want the list of returned items to be relevant to a particular country.
97
+
* If omitted, the returned items will be relevant to all countries.
98
+
*
99
+
* @throws BadRequestException if [categoryId] is not found or [locale] does not exist on Spotify
@@ -43,19 +128,60 @@ class BrowseAPI(api: SpotifyAPI) : SpotifyEndpoint(api) {
43
128
}
44
129
45
130
/**
131
+
* Create a playlist-style listening experience based on seed artists, tracks and genres.
132
+
* Recommendations are generated based on the available information for a given seed entity and matched against similar
133
+
* artists and tracks. If there is sufficient information about the provided seeds, a list of tracks will be returned
134
+
* together with pool size details. For artists and tracks that are very new or obscure there might not be enough data
135
+
* to generate a list of tracks.
136
+
*
137
+
* Tuneable track attribute descriptions and ranges are described [here](https://hastebin.com/olojoxonul.vbs)
46
138
* @param seedArtists A possibly null provided list of <b>Artist IDs</b> to be used to generate recommendations
47
139
* @param seedGenres A possibly null provided list of <b>Genre IDs</b> to be used to generate recommendations
48
140
* @param seedTracks A possibly null provided list of <b>Track IDs</b> to be used to generate recommendations
49
-
* @param targets A provided HashMap of attributes you'd like to weight. <b>See https://developer.spotify.com/web-api/complete-recommendations/ and scroll down to "<b>Tuneable Track attributes</b>" for a full list of optional attributes like "speechiness"
141
+
* @param limit The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50.
142
+
* @param market Provide this parameter if you want the list of returned items to be relevant to a particular country.
143
+
* If omitted, the returned items will be relevant to all countries.
144
+
* @param targetAttributes For each of the tunable track attributes a target value may be provided.
145
+
* Tracks with the attribute values nearest to the target values will be preferred.
146
+
* @param minAttributes For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided.
147
+
* @param maxAttributes For each tunable track attribute, a hard ceiling on the selected track attribute’s value can be provided.
148
+
* For example, setting max instrumentalness equal to 0.35 would filter out most tracks that are likely to be instrumental.
149
+
*
150
+
* @return [RecommendationResponse] with [RecommendationSeed]s used and [SimpleTrack]s found
151
+
*
152
+
* @throws BadRequestException if any filter is applied illegally
* @param playlistId The Spotify ID for the playlist.
33
+
* @param market Provide this parameter if you want to apply [Track Relinking](https://github.com/adamint/spotify-web-api-kotlin/blob/master/README.md#track-relinking)
34
+
*
35
+
* @throws BadRequestException if the playlist is not found
* Get full details of the tracks of a playlist owned by a Spotify user.
45
+
*
46
+
* @param userId The user’s Spotify user ID.
47
+
* @param playlistId The Spotify ID for the playlist.
48
+
* @param market Provide this parameter if you want to apply [Track Relinking](https://github.com/adamint/spotify-web-api-kotlin/blob/master/README.md#track-relinking)
49
+
* @param limit The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50.
50
+
* @param offset The index of the first album to return. Default: 0 (i.e., the first album). Use with limit to get the next set of albums.
51
+
*
52
+
* @throws BadRequestException if the playlist cannot be found
0 commit comments