CPU.Notifications

<back to all web services

SendGridEvents

Requires Authentication
The following routes are available for this service:
POST/sendgridevents
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class SendGridEvents : ArrayList<SendGridEvent>()
{
}

open class SendGridEvent
{
    @DataMember(Name="sg_event_id")
    @SerializedName("sg_event_id")
    open var sendGridEventId:String? = null

    @DataMember(Name="sg_message_id")
    @SerializedName("sg_message_id")
    open var sendGridMessageId:String? = null

    open var email:String? = null
    open var timestamp:Long? = null
    @DataMember(Name="smtp-id")
    @SerializedName("smtp-id")
    open var smtpId:String? = null

    open var event:String? = null
    @SerializedName("type") open var Type:String? = null
    open var category:ArrayList<String>? = null
    open var reason:String? = null
    open var status:String? = null
    open var userAgent:String? = null
    open var ip:String? = null
    open var url:String? = null
    @DataMember(Name="url_offset")
    @SerializedName("url_offset")
    open var urlOffset:String? = null

    @DataMember(Name="sg_machine_open")
    @SerializedName("sg_machine_open")
    open var machineOpen:Boolean? = null

    open var tls:String? = null
    @DataMember(Name="unique_args")
    @SerializedName("unique_args")
    open var uniqueArgs:HashMap<String,String>? = null

    @DataMember(Name="custom_args")
    @SerializedName("custom_args")
    open var customArgs:HashMap<String,String>? = null

    @DataMember(Name="marketing_campaign_id")
    @SerializedName("marketing_campaign_id")
    open var marketingCampaignId:String? = null

    @DataMember(Name="marketing_campaign_name")
    @SerializedName("marketing_campaign_name")
    open var marketingCampaignName:String? = null

    @DataMember(Name="singlesend_id")
    @SerializedName("singlesend_id")
    open var singleSendID:String? = null

    @DataMember(Name="singlesend_name")
    @SerializedName("singlesend_name")
    open var singleSendName:String? = null

    @DataMember(Name="bounce_classification")
    @SerializedName("bounce_classification")
    open var bounceClassification:String? = null
}

Kotlin SendGridEvents DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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

POST /sendgridevents HTTP/1.1 
Host: cpmwebservices-t.clarkpud.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

[]
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

(string)