EVOLUTION-MANAGER
Edit File: follow_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: Add Current User to Followers of 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 follow_playlist {spotifyr}"><tr><td>follow_playlist {spotifyr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Add Current User to Followers of Playlist.</h2> <h3>Description</h3> <p>Add Current User to Followers of Playlist. </p> <h3>Usage</h3> <pre> follow_playlist( playlist_id, public = FALSE, authorization = get_spotify_authorization_code() ) </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> of the playlist. Any playlist can be followed, regardless of its <a href="https://developer.spotify.com/documentation/general/guides/working-with-playlists/#public-private-and-collaborative-status">public/private status</a>, as long as you know its playlist ID.</p> </td></tr> <tr valign="top"><td><code>public</code></td> <td> <p>Optional. Defaults to <code>TRUE</code>. If <code>TRUE</code> the playlist will be included in the user's public playlists, if <code>FALSE</code> it will remain private. o be able to follow playlists privately, the user must have granted the <code>playlist-modify-private</code> <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#list-of-scopes">scope</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. Defaults to <code>spotifyr::get_spotify_authorization_code()</code>. The access token must have been issued on behalf of the current user. <br /> Following a publicly followed playlist for a user requires authorization of the <code>playlist-modify-public</code> scope; following a privately followed playlist requires the <code>playlist-modify-private</code> scope. See <a href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#list-of-scopes">Using Scopes</a>. <br /> Note that the scopes you provide relate only to whether the current user is following the playlist publicly or privately (i.e. showing others what they are following), not whether the playlist itself is public or private.</p> </td></tr> </table> <h3>Value</h3> <p>The response from the Spotify Web API on the <code>PUT</code> request, with a meaningful error message if the operation was not successful. </p> <hr /><div style="text-align: center;">[Package <em>spotifyr</em> version 2.2.3 <a href="00Index.html">Index</a>]</div> </body></html>