export class SendGridWebHooksData
{
// @DataMember(Name="email")
public email: string;
// @DataMember(Name="timestamp")
public timestamp: number;
public SmtpId: string;
public Event: string;
public Category: string[];
public Sg_Event_Id: string;
public Sg_Message_Id: string;
public Useragent: string;
public Ip: string;
public Url: string;
public Asm_Group_id: string;
public OurUniqueId: string;
public constructor(init?: Partial<SendGridWebHooksData>) { (Object as any).assign(this, init); }
}
export class SendGridWebHook extends Array<SendGridWebHooksData>
{
public constructor(init?: Partial<SendGridWebHook>) { super(); (Object as any).assign(this, init); }
}
TypeScript SendGridWebHook DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/SendGridWebHook HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: application/json
Content-Type: application/json
Content-Length: length
[]
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{}