TicketUserServices

<back to all web services

EventOwnerTrackingDestinationSetAccessTokenRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
PUT/EventOwnerTrackingDestination/{Id}/AccessToken
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class EventOwnerTrackingDestinationSetAccessTokenRequest
    {
        public Integer id = null;
        public Integer eventOwnerId = null;
        public String accessToken = null;
        public Boolean serverSideEnabled = null;
        public String testEventCode = null;
        
        public Integer getId() { return id; }
        public EventOwnerTrackingDestinationSetAccessTokenRequest setId(Integer value) { this.id = value; return this; }
        public Integer getEventOwnerId() { return eventOwnerId; }
        public EventOwnerTrackingDestinationSetAccessTokenRequest setEventOwnerId(Integer value) { this.eventOwnerId = value; return this; }
        public String getAccessToken() { return accessToken; }
        public EventOwnerTrackingDestinationSetAccessTokenRequest setAccessToken(String value) { this.accessToken = value; return this; }
        public Boolean isServerSideEnabled() { return serverSideEnabled; }
        public EventOwnerTrackingDestinationSetAccessTokenRequest setServerSideEnabled(Boolean value) { this.serverSideEnabled = value; return this; }
        public String getTestEventCode() { return testEventCode; }
        public EventOwnerTrackingDestinationSetAccessTokenRequest setTestEventCode(String value) { this.testEventCode = value; return this; }
    }

    public static class EventOwnerTrackingDestinationAccessTokenResult
    {
        public Boolean hasAccessToken = null;
        public Boolean serverSideEnabled = null;
        public String testEventCode = null;
        public Boolean encryptionConfigured = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Boolean isHasAccessToken() { return hasAccessToken; }
        public EventOwnerTrackingDestinationAccessTokenResult setHasAccessToken(Boolean value) { this.hasAccessToken = value; return this; }
        public Boolean isServerSideEnabled() { return serverSideEnabled; }
        public EventOwnerTrackingDestinationAccessTokenResult setServerSideEnabled(Boolean value) { this.serverSideEnabled = value; return this; }
        public String getTestEventCode() { return testEventCode; }
        public EventOwnerTrackingDestinationAccessTokenResult setTestEventCode(String value) { this.testEventCode = value; return this; }
        public Boolean isEncryptionConfigured() { return encryptionConfigured; }
        public EventOwnerTrackingDestinationAccessTokenResult setEncryptionConfigured(Boolean value) { this.encryptionConfigured = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public EventOwnerTrackingDestinationAccessTokenResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public EventOwnerTrackingDestinationAccessTokenResult setMessage(String value) { this.message = value; return this; }
    }

}

Java EventOwnerTrackingDestinationSetAccessTokenRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /EventOwnerTrackingDestination/{Id}/AccessToken HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventOwnerTrackingDestinationSetAccessTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <AccessToken>String</AccessToken>
  <EventOwnerId>0</EventOwnerId>
  <Id>0</Id>
  <ServerSideEnabled>false</ServerSideEnabled>
  <TestEventCode>String</TestEventCode>
</EventOwnerTrackingDestinationSetAccessTokenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventOwnerTrackingDestinationAccessTokenResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <EncryptionConfigured>false</EncryptionConfigured>
  <HasAccessToken>false</HasAccessToken>
  <Message>String</Message>
  <ServerSideEnabled>false</ServerSideEnabled>
  <StatusCode>0</StatusCode>
  <TestEventCode>String</TestEventCode>
</EventOwnerTrackingDestinationAccessTokenResult>