class StubHubApi::Listing

Public Instance Methods

create(options = {}) click to toggle source
# File lib/stub_hub_api/listing.rb, line 3
def create(options = {})
  post_query_api("/inventory/listings/v2", true, options)
end
create_with_barcode(options = {}) click to toggle source
# File lib/stub_hub_api/listing.rb, line 7
def create_with_barcode(options = {})
  post_query_api("/inventory/listings/v2/barcodes", true, options)
end
delete(listing_id) click to toggle source
# File lib/stub_hub_api/listing.rb, line 11
def delete(listing_id)
  delete_query_api("/inventory/listings/v1/#{listing_id}")
end
show(listing_id, options = {}) click to toggle source
# File lib/stub_hub_api/listing.rb, line 19
def show(listing_id, options = {})
  get_query_api("/inventory/listings/v2/#{listing_id}", options)
end
update(listing_id, options = {}) click to toggle source
# File lib/stub_hub_api/listing.rb, line 15
def update(listing_id, options = {})
  put_query_api("/inventory/listings/v2/#{listing_id}", true, options)
end