authorize: Authorize using OAuth

Description Usage Arguments Details Examples

View source: R/Authentication.R

Description

Authorize using OAuth

Usage

1
2
3
4
5
authorize(
 key,
 secret,
 cache = T
)

Arguments

key

Your key obtained from Discogs

secret

Your secret obtained from Discogs

cache

(optional) Should the authorization be cached?

Details

This function uses the httr package to make OAuth 1.0 requests. To obtain a developers key and secret, visit Discogs developers

Examples

1
2
3
my_key <- "abcde"
my_secret <- "secret"
token <- authorize(my_key, my_secret)

Pascallio/discogsAPI documentation built on Dec. 31, 2020, 3:27 p.m.