| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Sales.Total |
| GET POST | /ticketView/event/{EventId} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketViewsByEventRequest
{
public Integer eventId = null;
public Integer getEventId() { return eventId; }
public TicketViewsByEventRequest setEventId(Integer value) { this.eventId = value; return this; }
}
public static class TicketViewsByEventResult
{
public ArrayList<TicketViewItem> items = null;
public ArrayList<TicketViewItem> getItems() { return items; }
public TicketViewsByEventResult setItems(ArrayList<TicketViewItem> value) { this.items = value; return this; }
}
public static class TicketViewItem
{
public String ticketTokenId = null;
public Date firstViewedAt = null;
public Date lastViewedAt = null;
public Integer viewCount = null;
public String lastSource = null;
public String getTicketTokenId() { return ticketTokenId; }
public TicketViewItem setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
public Date getFirstViewedAt() { return firstViewedAt; }
public TicketViewItem setFirstViewedAt(Date value) { this.firstViewedAt = value; return this; }
public Date getLastViewedAt() { return lastViewedAt; }
public TicketViewItem setLastViewedAt(Date value) { this.lastViewedAt = value; return this; }
public Integer getViewCount() { return viewCount; }
public TicketViewItem setViewCount(Integer value) { this.viewCount = value; return this; }
public String getLastSource() { return lastSource; }
public TicketViewItem setLastSource(String value) { this.lastSource = value; return this; }
}
}
Java TicketViewsByEventRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ticketView/event/{EventId} HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"eventId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"items":[{"ticketTokenId":"String","firstViewedAt":"0001-01-01T00:00:00.0000000","lastViewedAt":"0001-01-01T00:00:00.0000000","viewCount":0,"lastSource":"String"}]}