Trendsic Platform Service

<back to all web services

QboConnectRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/qbo/connect
import 'package:servicestack/servicestack.dart';

class QboConnectResponse implements IConvertible
{
    String? Url;
    ResponseStatus? ResponseStatus;

    QboConnectResponse({this.Url,this.ResponseStatus});
    QboConnectResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Url = json['Url'];
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Url': Url,
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
    };

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

class QboConnectRequest implements IConvertible
{
    QboConnectRequest();
    QboConnectRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "QboConnectRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'QboConnectResponse': TypeInfo(TypeOf.Class, create:() => QboConnectResponse()),
    'QboConnectRequest': TypeInfo(TypeOf.Class, create:() => QboConnectRequest()),
});

Dart QboConnectRequest 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.

GET /v1/qbo/connect HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Url":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}