get_listing: View the data associated with a listing

Description Usage Arguments Details Examples

View source: R/Marketplace.R

Description

View the data associated with a listing

Usage

1
2
3
4
5
get_listing(
  listing_id,
  options = list(),
  token = NA
)

Arguments

listing_id

The ID of the listing you are fetching

options

(optional) Parameters, see Details

token

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

Details

If the authorized user is the listing owner the listing will include the weight, format_quantity, external_id, and location keys. If the user is authorized, the listing will contain a in_cart boolean field indicating whether or not this listing is in their cart.

Examples

1
2
3
listing <- get_listing(1)

listing <- get_listing(1, options = list("curr_abbr" = "EUR"))

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