IRequestpublic class AddTracksToPlaylistRequest extends AbstractDataRequest
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 | Description |
|---|---|---|
static class |
AddTracksToPlaylistRequest.Builder |
Builder class for building an
AddTracksToPlaylistRequest. |
| Modifier and Type | Method | 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
IOException - In case of networking issues.SpotifyWebApiException - The Web API returned an error further specified in this exception's root cause.Copyright © 2019. All rights reserved.