Core.rq_userlists is a collection of function wrappers around the Discogs API for interacting with the user lists of a given user.

get_userlists[source]

get_userlists(user:Union[UserWithoutAuthentication, UserWithUserTokenBasedAuthentication], username:str, page:Optional[int]=None, per_page:Optional[int]=None)

Get a list of user lists for the given user.

Note: Private Lists will only display when authenticated as the owner.

No user Authentication needed.

Parameters:

user: user object (required)

username: string (required) -> The username of the owner of the user lists you are trying to fetch.

page: number (optional) -> The page you want to request.

per_page: number (optional) -> The number of items per page.

# Example for usage of get_userlists
get_userlists(user=example_user, 
             username="discogspy", 
             page=1, 
             per_page=3)
<Response [200]>

get_userlist[source]

get_userlist(user:Union[UserWithoutAuthentication, UserWithUserTokenBasedAuthentication], list_id:int)

Get a list of items from a specified user list from the given user.

Note: Private Lists will only display when authenticated as the owner.

No user Authentication needed.

Parameters:

user: user object (required)

list_id: number (required) -> The ID of the List you are trying to fetch.

# Example for usage of get_userlist
get_userlist(user=example_user, 
             list_id=557135)
<Response [200]>