TicketUserServices

<back to all web services

EventOwnerTrackingDestinationGetAccessTokenStatusRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
GET/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 EventOwnerTrackingDestinationGetAccessTokenStatusRequest implements IConvertible
{
    int? id;
    int? eventOwnerId;

    EventOwnerTrackingDestinationGetAccessTokenStatusRequest({this.id,this.eventOwnerId});
    EventOwnerTrackingDestinationGetAccessTokenStatusRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        eventOwnerId = json['eventOwnerId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'eventOwnerId': eventOwnerId
    };

    getTypeName() => "EventOwnerTrackingDestinationGetAccessTokenStatusRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'EventOwnerTrackingDestinationAccessTokenResult': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationAccessTokenResult()),
    'EventOwnerTrackingDestinationGetAccessTokenStatusRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationGetAccessTokenStatusRequest()),
});

Dart EventOwnerTrackingDestinationGetAccessTokenStatusRequest DTOs

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

HTTP + JSV

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

GET /EventOwnerTrackingDestination/{Id}/AccessToken HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	hasAccessToken: False,
	serverSideEnabled: False,
	testEventCode: String,
	encryptionConfigured: False,
	statusCode: 0,
	message: String
}