Trendsic Platform Service

<back to all web services

SendTrackLinkRequest

Requires Authentication
The following routes are available for this service:
POST,OPTIONS/v1/fleet/send-track
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class SendTrackLinkResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    String? TrackUrl;
    List<String>? Sent = [];

    SendTrackLinkResponse({this.ResponseStatus,this.TrackUrl,this.Sent});
    SendTrackLinkResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class SendTrackLinkRequest implements IConvertible
{
    int? JobID;
    String? ScheduledDate;
    String? Email;
    String? Phone;

    SendTrackLinkRequest({this.JobID,this.ScheduledDate,this.Email,this.Phone});
    SendTrackLinkRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        JobID = json['JobID'];
        ScheduledDate = json['ScheduledDate'];
        Email = json['Email'];
        Phone = json['Phone'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'JobID': JobID,
        'ScheduledDate': ScheduledDate,
        'Email': Email,
        'Phone': Phone
    };

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

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

Dart SendTrackLinkRequest 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 /v1/fleet/send-track HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"JobID":0,"ScheduledDate":"String","Email":"String","Phone":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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