EVOLUTION-MANAGER
Edit File: get_my_top_artists_or_tracks.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’s Top Artists or Tracks</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_my_top_artists_or_tracks {spotifyr}"><tr><td>get_my_top_artists_or_tracks {spotifyr}</td><td style="text-align: right;">R Documentation</td></tr></table> <h2>Get User’s Top Artists or Tracks</h2> <h3>Description</h3> <p>Get the current user’s top artists or tracks based on calculated affinity. </p> <h3>Usage</h3> <pre> get_my_top_artists_or_tracks( type = "artists", limit = 20, offset = 0, time_range = "medium_term", authorization = get_spotify_authorization_code(), include_meta_info = FALSE ) </pre> <h3>Arguments</h3> <table summary="R argblock"> <tr valign="top"><td><code>type</code></td> <td> <p>Required. The type of entity to return. Defaults to <code>artists</code>, the valid alternative is <code>tracks</code>.</p> </td></tr> <tr valign="top"><td><code>limit</code></td> <td> <p>Optional. <br /> Maximum number of results to return. <br /> Default: 20 <br /> Minimum: 1 <br /> Maximum: 50 <br /></p> </td></tr> <tr valign="top"><td><code>offset</code></td> <td> <p>Optional. <br /> The index of the first entity to return. <br /> Default: 0 (i.e., the first track). <br /> Use with limit to get the next set of entities.</p> </td></tr> <tr valign="top"><td><code>time_range</code></td> <td> <p>Optional. Over what time frame the affinities are computed. Valid values: long_term (calculated from several years of data and including all new data as it becomes available), <code>medium_term</code> (approximately last 6 months), <code>short_term</code> (approximately last 4 weeks). Default: <code>medium_term</code>.</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_access_token()</code></p> </td></tr> <tr valign="top"><td><code>include_meta_info</code></td> <td> <p>Optional. Boolean indicating whether to include full result, with meta information such as <code>"total"</code>, and <code>"limit"</code>. Defaults to <code>FALSE</code>.</p> </td></tr> </table> <h3>Value</h3> <p>Returns a data frame of results containing track or album data. See the official API <a href="https://developer.spotify.com/documentation/web-api/reference/#endpoint-get-users-top-artists-and-tracks">documentation</a> for more information. </p> <h3>See Also</h3> <p>Other personalization functions: <code><a href="get_recommendations_all.html">get_recommendations_all</a>()</code>, <code><a href="get_recommendations.html">get_recommendations</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>