Package org.oxerr.seatgeek.client.rescu
Interface ListingResource
-
@Path("/") public interface ListingResource
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.oxerr.seatgeek.client.model.response.Response
createListing(String ticketId, org.oxerr.seatgeek.client.model.request.CreateListingRequest r)
org.oxerr.seatgeek.client.model.response.Response
deleteListing(String ticketId)
org.oxerr.seatgeek.client.model.response.SingleListingResponse
getListing(String ticketId)
org.oxerr.seatgeek.client.model.response.MultipleListingsResponse
getListings(String listingIds, Integer onlyBarcode, Integer page, Integer perPage)
Retrieves multiple listings at once.org.oxerr.seatgeek.client.model.request.UpdateListingRequest
updateListing(String ticketId, org.oxerr.seatgeek.client.model.request.UpdateListingRequest r)
-
-
-
Method Detail
-
createListing
@PUT @Path("/listings/single/{ticket_id}") @Produces("application/json") @Consumes("application/json") org.oxerr.seatgeek.client.model.response.Response createListing(@PathParam("ticket_id") String ticketId, org.oxerr.seatgeek.client.model.request.CreateListingRequest r) throws IOException
- Throws:
IOException
-
updateListing
@PATCH @Path("/listings/single/{ticket_id}") @Produces("application/json") @Consumes("application/json") org.oxerr.seatgeek.client.model.request.UpdateListingRequest updateListing(@PathParam("ticket_id") String ticketId, org.oxerr.seatgeek.client.model.request.UpdateListingRequest r) throws IOException
- Throws:
IOException
-
getListing
@GET @Path("/listings/single/{ticket_id}") org.oxerr.seatgeek.client.model.response.SingleListingResponse getListing(@PathParam("ticket_id") String ticketId) throws IOException
- Throws:
IOException
-
getListings
@GET @Path("/listings") org.oxerr.seatgeek.client.model.response.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") org.oxerr.seatgeek.client.model.response.Response deleteListing(@QueryParam("id") String ticketId) throws IOException
- Throws:
IOException
-
-