Description Usage Arguments Examples
Add a given track to your preferites
1 | setUserFavorite(token, track_id, client_id = Sys.getenv("JAMENDO_CLIENT_ID"))
|
token |
Your OAuth access token |
track_id |
Track ID of track you want to favourite |
client_id |
Defaults to System Environment variable "JAMENDO_CLIENT_ID" See https://developer.jamendo.com/v3.0/setuser/favorite for more information. |
1 2 3 4 5 6 | ## Example
app_name = ""
if(app_name != "") {
token <- jamendoOAuth(app_name=app_name)
setUserFavorite(token, "114069")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.