get_collection: Retrieve a list of folders in a user’s collection.

Description Usage Arguments Details Examples

View source: R/Collection.R

Description

Retrieve a list of folders in a user’s collection.

Usage

1
2
3
4
get_collection(
 username,
 token = NA
)

Arguments

username

String containing a valid username

token

(optional) Token object obtained from authorize() or a string containing your personal access token

Details

If the collection has been made private by its owner, authentication as the collection owner is required. If you are not authenticated as the collection owner, only folder ID 0 (the “All” folder) will be visible (if the requested user’s collection is public).

Examples

1
2
token <- authorize("key", "secret")
collection <- get_collection("username", token)

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