Package org.oxerr.seatgeek.client.rescu
Interface ListingResource
@Path("/")
public interface ListingResource
-
Method Summary
Modifier and TypeMethodDescriptioncreateListing
(String ticketId, CreateListingRequest r) deleteListing
(String ticketId) getListing
(String ticketId) getListings
(String listingIds, Integer onlyBarcode, Integer page, Integer perPage) Retrieves multiple listings at once.updateListing
(String ticketId, UpdateListingRequest r)
-
Method Details
-
createListing
@PUT @Path("/listings/single/{ticket_id}") @Produces("application/json") @Consumes("application/json") Response createListing(@PathParam("ticket_id") String ticketId, CreateListingRequest r) throws IOException - Throws:
IOException
-
updateListing
@PATCH @Path("/listings/single/{ticket_id}") @Produces("application/json") @Consumes("application/json") UpdateListingRequest updateListing(@PathParam("ticket_id") String ticketId, UpdateListingRequest r) throws IOException - Throws:
IOException
-
getListing
@GET @Path("/listings/single/{ticket_id}") SingleListingResponse getListing(@PathParam("ticket_id") String ticketId) throws IOException - Throws:
IOException
-
getListings
@GET @Path("/listings") MultipleListingsResponse getListings(@QueryParam("listing_ids") String listingIds, @QueryParam("only_barcode") Integer onlyBarcode, @QueryParam("page") Integer page, @QueryParam("per_page") Integer perPage) throws IOException Retrieves multiple listings at once.- Parameters:
listingIds
- Comma-separated ticket_ids.onlyBarcode
- Defaults to 0. If 1, only return listings that require barcodes.page
- Which page of results?perPage
- Default 500. How many orders per page?- Returns:
- multiple listings.
- Throws:
IOException
- indicates any I/O exception.
-
deleteListing
@DELETE @Path("/listing") Response deleteListing(@QueryParam("id") String ticketId) throws IOException - Throws:
IOException
-