| Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
| PUT | /EventOwnerTrackingDestination/{Id}/AccessToken |
|---|
import 'package:servicestack/servicestack.dart';
class EventOwnerTrackingDestinationAccessTokenResult implements IConvertible
{
bool? hasAccessToken;
bool? serverSideEnabled;
String? testEventCode;
bool? encryptionConfigured;
int? statusCode;
String? message;
EventOwnerTrackingDestinationAccessTokenResult({this.hasAccessToken,this.serverSideEnabled,this.testEventCode,this.encryptionConfigured,this.statusCode,this.message});
EventOwnerTrackingDestinationAccessTokenResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
hasAccessToken = json['hasAccessToken'];
serverSideEnabled = json['serverSideEnabled'];
testEventCode = json['testEventCode'];
encryptionConfigured = json['encryptionConfigured'];
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'hasAccessToken': hasAccessToken,
'serverSideEnabled': serverSideEnabled,
'testEventCode': testEventCode,
'encryptionConfigured': encryptionConfigured,
'statusCode': statusCode,
'message': message
};
getTypeName() => "EventOwnerTrackingDestinationAccessTokenResult";
TypeContext? context = _ctx;
}
class EventOwnerTrackingDestinationSetAccessTokenRequest implements IConvertible
{
int? id;
int? eventOwnerId;
String? accessToken;
bool? serverSideEnabled;
String? testEventCode;
EventOwnerTrackingDestinationSetAccessTokenRequest({this.id,this.eventOwnerId,this.accessToken,this.serverSideEnabled,this.testEventCode});
EventOwnerTrackingDestinationSetAccessTokenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
eventOwnerId = json['eventOwnerId'];
accessToken = json['accessToken'];
serverSideEnabled = json['serverSideEnabled'];
testEventCode = json['testEventCode'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'eventOwnerId': eventOwnerId,
'accessToken': accessToken,
'serverSideEnabled': serverSideEnabled,
'testEventCode': testEventCode
};
getTypeName() => "EventOwnerTrackingDestinationSetAccessTokenRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'EventOwnerTrackingDestinationAccessTokenResult': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationAccessTokenResult()),
'EventOwnerTrackingDestinationSetAccessTokenRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationSetAccessTokenRequest()),
});
Dart EventOwnerTrackingDestinationSetAccessTokenRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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>