PUT | /messages/getstarted | Will send get started messages to all new customers that haven't get started yet |
---|
import 'package:servicestack/servicestack.dart';
class SendGetStartedMessageResponse implements IConvertible
{
int? Companies;
int? SentCount;
ResponseStatus? ResponseStatus;
SendGetStartedMessageResponse({this.Companies,this.SentCount,this.ResponseStatus});
SendGetStartedMessageResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Companies = json['Companies'];
SentCount = json['SentCount'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Companies': Companies,
'SentCount': SentCount,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "SendGetStartedMessageResponse";
TypeContext? context = _ctx;
}
class SendGetStartedMessage implements IConvertible
{
SendGetStartedMessage();
SendGetStartedMessage.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "SendGetStartedMessage";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: <String, TypeInfo> {
'SendGetStartedMessageResponse': TypeInfo(TypeOf.Class, create:() => SendGetStartedMessageResponse()),
'SendGetStartedMessage': TypeInfo(TypeOf.Class, create:() => SendGetStartedMessage()),
});
Dart SendGetStartedMessage DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /messages/getstarted HTTP/1.1
Host: api.bokamera.se
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Companies":0,"SentCount":0,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}