| POST | /callback |
|---|
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CPU.Notifications.ServiceModel;
namespace CPU.Notifications.ServiceModel
{
public partial class TwilioCallback
{
public virtual string? AccountSid { get; set; }
public virtual string? Body { get; set; }
public virtual string? From { get; set; }
public virtual string? MessageSid { get; set; }
public virtual string? To { get; set; }
}
}
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.
POST /callback HTTP/1.1
Host: cpmwebservices-t.clarkpud.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"accountSid":"String","body":"String","from":"String","messageSid":"String","to":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length (string)