get_playlist_tracks: Get Details of User Playlist Tracks.In spotifyr: R Wrapper for the 'Spotify' Web API
Description Usage Arguments Value See Also
View source: R/playlists.R
Description
Get full details of the tracks of a playlist owned by a Spotify user.
Usage
1
2
3
4
5
6
7
8
9 | get_playlist_tracks[
playlist_id,
fields = NULL,
limit = 100,
offset = 0,
market = NULL,
authorization = get_spotify_access_token[],
include_meta_info = FALSE
]
|
Arguments
playlist_id | Required. The Spotify ID for the playlist. |
fields | 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 playlists creation date and album information: fields = c["added_at", "track.album"]. 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: |
limit | Optional. |
offset | Optional. |
market | Optional. |
authorization | Required. A valid access token from the Spotify Accounts service. See the Web API authorization guide for more details. Both Public and Private playlists belonging to any user are retrievable on provision of a valid access token. Defaults to spotifyr::get_spotify_access_token[] |
include_meta_info | Optional. Boolean indicating whether to include full result, with meta information such as "total", and "limit". Defaults to FALSE. |
Value
Returns a data frame of results containing user profile information. See //developer.spotify.com/documentation/web-api/reference/users-profile/get-current-users-profile/ for more information.
See Also
Other track functions: get_album_tracks[], get_tracks[], get_track[]
spotifyr documentation built on Nov. 3, 2021, 1:08 a.m.