spotifyr is a thin client library for the Spotify Web API.
spotifyr
from CRAN with install.packages("spotifyr")
, orR
devtools::install_github("jmp75/spotifyr")
To get started, simply install spotifyr, create a Spotify object and call methods:
library(spotifyr)
token <- spotify_get_some_auth_token()
# Note: point to naming and code conventions
results <- spotify_search(q='weezer', limit=20)
some_data_frame <- spotify_todo(results)
#for i, t in enumerate(results['tracks']['items']):
# print ' ', i, t['name']
TBC, but a priori a lot will be borrowed from spotipy.
If you have suggestions, bugs or other issues specific to this library, file them here. Or just send me a pull request.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.