spotifyr (version 1.0.0)

get_user_playlist_count: Get count of Spotify playlists for a given user

Description

Helper function for spotifyr::get_user_playlists()

Usage

get_user_playlist_count(username, access_token = get_spotify_access_token(),
  echo = F)

Arguments

username

String of Spotify username. Can be found within the Spotify App

access_token

Spotify Web API token. Defaults to spotifyr::get_spotify_access_token()

echo

Boolean for whether or not to print number of playlists for the given username. Defaults to FALSE

Examples

Run this code
# NOT RUN {
obama_playlist_count <- get_user_playlist_count('barackobama')
# }

Run the code above in your browser using DataLab