|
1 |
| -<HTML> |
2 |
| -<HEAD> |
3 |
| -<meta charset="UTF-8"> |
4 |
| -<title>com.adamratzman.spotify.endpoints.client.ClientPlaylistApi.addTracksToPlaylist - spotify-web-api-kotlin</title> |
5 |
| -<link rel="stylesheet" href="../../../style.css"> |
6 |
| -</HEAD> |
7 |
| -<BODY> |
8 |
| -<a href="../../index.html">spotify-web-api-kotlin</a> / <a href="../index.html">com.adamratzman.spotify.endpoints.client</a> / <a href="index.html">ClientPlaylistApi</a> / <a href="./add-tracks-to-playlist.html">addTracksToPlaylist</a><br/> |
9 |
| -<br/> |
10 |
| -<h1>addTracksToPlaylist</h1> |
11 |
| -<a name="com.adamratzman.spotify.endpoints.client.ClientPlaylistApi$addTracksToPlaylist(kotlin.String, kotlin.Array((kotlin.String)), kotlin.Int)"></a> |
12 |
| -(common, js, jvm) <code><span class="keyword">fun </span><span class="identifier">addTracksToPlaylist</span><span class="symbol">(</span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientPlaylistApi$addTracksToPlaylist(kotlin.String, kotlin.Array((kotlin.String)), kotlin.Int)/playlist">playlist</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="keyword">vararg</span> <span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientPlaylistApi$addTracksToPlaylist(kotlin.String, kotlin.Array((kotlin.String)), kotlin.Int)/tracks">tracks</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientPlaylistApi$addTracksToPlaylist(kotlin.String, kotlin.Array((kotlin.String)), kotlin.Int)/position">position</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span><span class="symbol">: </span><a href="../../com.adamratzman.spotify/-spotify-rest-action/index.html"><span class="identifier">SpotifyRestAction</span></a><span class="symbol"><</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">></span></code> |
13 |
| -<p>Add one or more tracks to a user’s playlist.</p> |
14 |
| -<p>Adding tracks to the current user’s public playlists requires authorization of the <a href="../../com.adamratzman.spotify/-spotify-scope/-p-l-a-y-l-i-s-t_-m-o-d-i-f-y_-p-u-b-l-i-c.html#com.adamratzman.spotify.SpotifyScope.PLAYLIST_MODIFY_PUBLIC">SpotifyScope.PLAYLIST_MODIFY_PUBLIC</a> scope; |
15 |
| -adding tracks to the current user’s private playlist (including collaborative playlists) requires the <a href="../../com.adamratzman.spotify/-spotify-scope/-p-l-a-y-l-i-s-t_-m-o-d-i-f-y_-p-r-i-v-a-t-e.html#com.adamratzman.spotify.SpotifyScope.PLAYLIST_MODIFY_PRIVATE">SpotifyScope.PLAYLIST_MODIFY_PRIVATE</a> scope.</p> |
16 |
| -<h3>Parameters</h3> |
17 |
| -<p><a name="playlist"></a> |
18 |
| -<code>playlist</code> - The spotify id or uri for the playlist.</p> |
19 |
| -<p><a name="tracks"></a> |
20 |
| -<code>tracks</code> - Spotify track ids. A maximum of 100 tracks can be added in one request.</p> |
21 |
| -<p><a name="position"></a> |
22 |
| -<code>position</code> - The position to insert the tracks, a zero-based index. For example, to insert the tracks in the |
23 |
| -first position: position=0; to insert the tracks in the third position: position=2. If omitted, the tracks will |
24 |
| -be appended to the playlist. Tracks are added in the order they are listed in the query string or request body.</p> |
25 |
| -<h3>Exceptions</h3> |
26 |
| -<p><a name="BadRequestException"></a> |
27 |
| -<code>BadRequestException</code> - if any invalid track ids is provided or the playlist is not found</p> |
28 |
| -</BODY> |
29 |
| -</HTML> |
| 1 | +<HTML> |
| 2 | +<HEAD> |
| 3 | +<meta charset="UTF-8"> |
| 4 | +<title>com.adamratzman.spotify.endpoints.client.ClientPlaylistApi.addTracksToPlaylist - spotify-web-api-kotlin</title> |
| 5 | +<link rel="stylesheet" href="../../../style.css"> |
| 6 | +</HEAD> |
| 7 | +<BODY> |
| 8 | +<a href="../../index.html">spotify-web-api-kotlin</a> / <a href="../index.html">com.adamratzman.spotify.endpoints.client</a> / <a href="index.html">ClientPlaylistApi</a> / <a href="./add-tracks-to-playlist.html">addTracksToPlaylist</a><br/> |
| 9 | +<br/> |
| 10 | +<h1>addTracksToPlaylist</h1> |
| 11 | +<a name="com.adamratzman.spotify.endpoints.client.ClientPlaylistApi$addTracksToPlaylist(kotlin.String, kotlin.Array((kotlin.String)), kotlin.Int)"></a> |
| 12 | +(common, js, jvm) <code><span class="keyword">fun </span><span class="identifier">addTracksToPlaylist</span><span class="symbol">(</span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientPlaylistApi$addTracksToPlaylist(kotlin.String, kotlin.Array((kotlin.String)), kotlin.Int)/playlist">playlist</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="keyword">vararg</span> <span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientPlaylistApi$addTracksToPlaylist(kotlin.String, kotlin.Array((kotlin.String)), kotlin.Int)/tracks">tracks</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a><span class="symbol">, </span><span class="identifier" id="com.adamratzman.spotify.endpoints.client.ClientPlaylistApi$addTracksToPlaylist(kotlin.String, kotlin.Array((kotlin.String)), kotlin.Int)/position">position</span><span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html"><span class="identifier">Int</span></a><span class="symbol">?</span> <span class="symbol">=</span> null<span class="symbol">)</span><span class="symbol">: </span><a href="../../com.adamratzman.spotify/-spotify-rest-action/index.html"><span class="identifier">SpotifyRestAction</span></a><span class="symbol"><</span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html"><span class="identifier">Unit</span></a><span class="symbol">></span></code> |
| 13 | +<p>Add one or more tracks to a user’s playlist.</p> |
| 14 | +<p>Adding tracks to the current user’s public playlists requires authorization of the <a href="../../com.adamratzman.spotify/-spotify-scope/-p-l-a-y-l-i-s-t_-m-o-d-i-f-y_-p-u-b-l-i-c.html#com.adamratzman.spotify.SpotifyScope.PLAYLIST_MODIFY_PUBLIC">SpotifyScope.PLAYLIST_MODIFY_PUBLIC</a> scope; |
| 15 | +adding tracks to the current user’s private playlist (including collaborative playlists) requires the <a href="../../com.adamratzman.spotify/-spotify-scope/-p-l-a-y-l-i-s-t_-m-o-d-i-f-y_-p-r-i-v-a-t-e.html#com.adamratzman.spotify.SpotifyScope.PLAYLIST_MODIFY_PRIVATE">SpotifyScope.PLAYLIST_MODIFY_PRIVATE</a> scope.</p> |
| 16 | +<h3>Parameters</h3> |
| 17 | +<p><a name="playlist"></a> |
| 18 | +<code>playlist</code> - The spotify id or uri for the playlist.</p> |
| 19 | +<p><a name="tracks"></a> |
| 20 | +<code>tracks</code> - Spotify track ids. A maximum of 100 tracks can be added in one request.</p> |
| 21 | +<p><a name="position"></a> |
| 22 | +<code>position</code> - The position to insert the tracks, a zero-based index. For example, to insert the tracks in the |
| 23 | +first position: position=0; to insert the tracks in the third position: position=2. If omitted, the tracks will |
| 24 | +be appended to the playlist. Tracks are added in the order they are listed in the query string or request body.</p> |
| 25 | +<h3>Exceptions</h3> |
| 26 | +<p><a name="BadRequestException"></a> |
| 27 | +<code>BadRequestException</code> - if any invalid track ids is provided or the playlist is not found</p> |
| 28 | +</BODY> |
| 29 | +</HTML> |
0 commit comments