EVOLUTION-MANAGER
Edit File: get_playlist.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Get User Playlist</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" type="text/css" href="R.css" /> </head><body> <table width="100%" summary="page for get_playlist {spotifyr}"><tr><td>get_playlist {spotifyr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get User Playlist</h2> <h3>Description</h3> <p>Get a playlist owned by a Spotify user. </p> <h3>Usage</h3> <pre> get_playlist( playlist_id, fields = NULL, market = NULL, authorization = get_spotify_access_token() ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>playlist_id</code></td> <td> <p>Required. The <a href="https://developer.spotify.com/documentation/web-api/#spotify-uris-and-ids">Spotify ID</a> for the playlist.</p> </td></tr> <tr valign="top"><td><code>fields</code></td> <td> <p>Optional. Filters for the query: a comma-separated list of the fields to return. If omitted, all fields are returned. For example, to get just the playlist’s description and URI: <br /> <code>fields = c("description", "uri")</code> <br /> A dot separator can be used to specify non-reoccurring fields, while parentheses can be used to specify reoccurring fields within objects. For example, to get just the added date and user ID of the adder: <br /> <code>fields = "tracks.items(added_at,added_by.id)"</code> <br /> Use multiple parentheses to drill down into nested objects, for example: <br /> <code>fields = "tracks.items(track(name,href,album(name,href)))"</code> <br /> Fields can be excluded by prefixing them with an exclamation mark, for example: <br /> <code>fields = "tracks.items(track(name,href,album(!name,href)))"</code></p> </td></tr> <tr valign="top"><td><code>market</code></td> <td> <p>Optional. <br /> An ISO 3166-1 alpha-2 country code or the string <code>"from_token"</code>. Provide this parameter if you want to apply <a href="https://developer.spotify.com/documentation/general/guides/track-relinking-guide/">Track Relinking</a></p> </td></tr> <tr valign="top"><td><code>authorization</code></td> <td> <p>Required. A valid access token from the Spotify Accounts service. See the <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/">Web API authorization guide</a> for more details. Both Public and Private playlists belonging to any user are retrievable on provision of a valid access token. Defaults to <code>spotifyr::get_spotify_access_token()</code></p> </td></tr> </table> <h3>Value</h3> <p>Returns a data frame of results containing user profile information. See <a href="https://developer.spotify.com/documentation/web-api/reference/users-profile/get-current-users-profile/">https://developer.spotify.com/documentation/web-api/reference/users-profile/get-current-users-profile/</a> for more information. </p> <h3>See Also</h3> <p>Other playlist functions: <code><a href="add_tracks_to_playlist.html">add_tracks_to_playlist</a>()</code>, <code><a href="change_playlist_details.html">change_playlist_details</a>()</code>, <code><a href="check_users_following.html">check_users_following</a>()</code>, <code><a href="create_playlist.html">create_playlist</a>()</code>, <code><a href="get_my_playlists.html">get_my_playlists</a>()</code>, <code><a href="get_user_playlists.html">get_user_playlists</a>()</code>, <code><a href="remove_tracks_from_playlist.html">remove_tracks_from_playlist</a>()</code>, <code><a href="tidy.html">tidy</a>()</code> </p> <hr /><div style="text-align: center;">[Package <em>spotifyr</em> version 2.2.3 <a href="00Index.html">Index</a>]</div> </body></html>