tvpl.api

<back to all web services

GmailCallback

Requires Authentication
The following routes are available for this service:
GET/gmail/callback
import 'package:servicestack/servicestack.dart';

class GmailCallback implements IConvertible
{
    String? code;
    String? error;

    GmailCallback({this.code,this.error});
    GmailCallback.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
    'GmailCallback': TypeInfo(TypeOf.Class, create:() => GmailCallback()),
});

Dart GmailCallback 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 /gmail/callback HTTP/1.1 
Host: etc-api.vsmlab.vn 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

(string)