digitaluapi

<back to all web services

TwoFASubmitToken

The following routes are available for this service:
POST/twofa/token
import 'package:servicestack/servicestack.dart';

class TwoFASubmitToken implements IConvertible
{
    // @Required()
    int? Token;

    TwoFASubmitToken({this.Token});
    TwoFASubmitToken.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
    'TwoFASubmitToken': TypeInfo(TypeOf.Class, create:() => TwoFASubmitToken()),
});

Dart TwoFASubmitToken DTOs

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

HTTP + OTHER

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

POST /twofa/token HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Token":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{}