"use strict";
export class SendGridWebHooksData {
/** @param {{email?:string,timestamp?:number,SmtpId?:string,Event?:string,Category?:string[],Sg_Event_Id?:string,Sg_Message_Id?:string,Useragent?:string,Ip?:string,Url?:string,Asm_Group_id?:string,OurUniqueId?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
email;
/** @type {number} */
timestamp;
/** @type {string} */
SmtpId;
/** @type {string} */
Event;
/** @type {string[]} */
Category;
/** @type {string} */
Sg_Event_Id;
/** @type {string} */
Sg_Message_Id;
/** @type {string} */
Useragent;
/** @type {string} */
Ip;
/** @type {string} */
Url;
/** @type {string} */
Asm_Group_id;
/** @type {string} */
OurUniqueId;
}
export class SendGridWebHook extends Array {
constructor(init) { super(init); Object.assign(this, init) }
}
JavaScript SendGridWebHook DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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/" />