digitaluapi

<back to all web services

SendGridWebHook


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 .xml suffix or ?format=xml

HTTP + XML

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

POST /xml/reply/SendGridWebHook HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ArrayOfSendGridWebHooksData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/digitaluapi.ServiceModel" />
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />