TicketUserServices

<back to all web services

SurveyMandrillWebhookRequest

The following routes are available for this service:
POST GET HEAD/SurveyWebhook/Mandrill
import 'package:servicestack/servicestack.dart';

class SurveyMandrillWebhookResult implements IConvertible
{
    int? received;
    int? applied;
    int? unmatched;
    int? statusCode;
    String? message;

    SurveyMandrillWebhookResult({this.received,this.applied,this.unmatched,this.statusCode,this.message});
    SurveyMandrillWebhookResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        received = json['received'];
        applied = json['applied'];
        unmatched = json['unmatched'];
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'received': received,
        'applied': applied,
        'unmatched': unmatched,
        'statusCode': statusCode,
        'message': message
    };

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

class SurveyMandrillWebhookRequest implements IConvertible
{
    String? mandrill_events;

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

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

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

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

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

Dart SurveyMandrillWebhookRequest DTOs

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

HTTP + CSV

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

POST /SurveyWebhook/Mandrill HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"mandrill_events":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"received":0,"applied":0,"unmatched":0,"statusCode":0,"message":"String"}