Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

jamendoOAuth

Create OAuth token to access jamendo web API


Description

jamendoOAuth creates a long-lived OAuth access token that enables R to make authenticated calls to the Jamendo API. The token can be saved as a file in disk to be re-used in future sessions. This function relies on the httr package to create the OAuth token

Usage

jamendoOAuth(app_name, client_id = Sys.getenv("JAMENDO_CLIENT_ID"),
  client_secret = Sys.getenv("JAMENDO_CLIENT_SECRET"))

Arguments

app_name

App name (this is an internal identification for token if you wish to save authorization)

client_id

Defaults to System Environment variable "JAMENDO_CLIENT_ID"

client_secret

Defaults to System Environment variable "JAMENDO_CLIENT_SECRET"

Value

Returns an OAuth access token as environment

Examples

## Example
 my_oauth <- jamendoOAuth(app_name="xxxx")
 filedir <- tempdir()
 save(my_oauth, file=file.path(filedir, "my_oauth"))

JamendoR

Access to 'Jamendo' API

v0.1.0
MIT + file LICENSE
Authors
Maximilian Greil [aut, cre], Benedikt Greil [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.