public class AddTracksToPlaylistRequest extends AbstractDataRequest<SnapshotResult>
Use this endpoint to add Spotify tracks to a user’s playlist, sending their Spotify URI. Note that local tracks can’t be added.
| Modifier and Type | Class and Description |
|---|---|
static class |
AddTracksToPlaylistRequest.Builder
Builder class for building an
AddTracksToPlaylistRequest. |
| Modifier and Type | Method and Description |
|---|---|
SnapshotResult |
execute()
Add tracks to playlist.
|
bodyParametersToJson, deleteJson, executeAsync, getBody, getBodyParameters, getContentType, getHeaders, getHttpManager, getJson, getUri, initializeBody, postJson, putJsonpublic SnapshotResult execute() throws IOException, SpotifyWebApiException, org.apache.hc.core5.http.ParseException
IOException - In case of networking issues.SpotifyWebApiException - The Web API returned an error further specified in this exception's root cause.org.apache.hc.core5.http.ParseExceptionCopyright © 2020. All rights reserved.