spotifyOAuth: Create OAuth token to access Spotify web API

Description Usage Arguments Examples

Description

spotifyOAuth creates a long-lived OAuth access token that enables R to make authenticated calls to the Spotify 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

1
spotifyOAuth(app_id, client_id, client_secret)

Arguments

app_id

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

client_id

Client ID

client_secret

Client Secret

Examples

1
2
3
4
5
6
7
8
## Not run: 

 my_oauth <- spotifyOAuth(app_id="xxxx",client_id="yyyy",client_secret="zzzz")
 save(my_oauth, file="my_oauth")
 load("my_oauth")
 tiago <- getUser(user_id="t.mendesdantas",token=my_oauth)

## End(Not run)

Rspotify documentation built on May 2, 2019, 2:41 a.m.