get_identity: Retrieve basic information about the authenticated user.

Description Usage Arguments Details Examples

View source: R/Identity.R

Description

Retrieve basic information about the authenticated user.

Usage

1
2
3
get_identity(
 token
)

Arguments

token

Token object obtained from authorize()

Details

You can use this resource to find out who you’re authenticated as, and it also doubles as a good sanity check to ensure that you’re using OAuth correctly. This function does not work with a personalized token, but only using OAuth.

Examples

1
2
token <- authorize("key", "secret")
identity <- get_identity(token)

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