...
Adding a new marketing email Anchor Adding a new marketing email Adding a new marketing email
The addMarketingEmail operation creates a new Marketing Email.
...
html: Required - The html portion of the Marketing Email being created.
Code Block | ||||
---|---|---|---|---|
| ||||
{
"apiUrl":"https://api.sendgrid.com/api/newsletter",
"apiUser":"UserName",
"apiKey":"PassWord",
"identity":"Sender_Address",
"name":"SendGrid_Test",
"subject":"testSubject",
"text":"testText",
"html":"testHtml"
} |
Editing Editing an existing marketing email Anchor Editing an existing marketing email Editing an existing marketing email
The editMarketingEmail operation edits an existing Marketing Email.
...
html: Required - The html portion of the Marketing Email.
Code Block | ||||
---|---|---|---|---|
| ||||
{
"apiUrl":"https://api.sendgrid.com/api/newsletter",
"apiUser":"UserName",
"apiKey":"PassWord",
"identity":"Sender_Address",
"name":"SendGrid_Test",
"newname":"SendGridTestNewName",
"subject":"testSubject",
"text":"testText",
"html":"testHtml"
} |
Retrieving an marketing email Anchor Retrieving an marketing email Retrieving an marketing email
The getMarketingEmail operation retrieve the contents of an existing Marketing Email.
...
Properties
name: Required - Retrieve the content of an existing Marketing Email.
Code Block | ||||
---|---|---|---|---|
| ||||
{
"apiUrl":"https://api.sendgrid.com/api/newsletter",
"apiUser":"UserName",
"apiKey":"PassWord",
"name":"SendGrid_Test"
} |
Retrieve a list of all existing Marketing Email. Anchor Retrieve a list of all existing Marketing Email. Retrieve a list of all existing Marketing Email.
The listMarketingEmail operation retrieves a list of all existing Marketing Email.
...
Properties
name: Required - Search to see if a specific Marketing Email exists rather than a list of all Marketing Emails.
Code Block | ||||
---|---|---|---|---|
| ||||
{
"apiUrl":"https://api.sendgrid.com/api/newsletter",
"apiUser":"UserName",
"apiKey":"PassWord",
"name":"SendGrid_Test"
} |
Remove an existing Marketing Email. Anchor Remove an existing Marketing Email. Remove an existing Marketing Email.
The deleteMarketingEmail operation remove an existing Marketing Email.
...
Properties
name: Required - Remove the Marketing Email with this name.
Code Block | ||||
---|---|---|---|---|
| ||||
{
"apiUrl":"https://api.sendgrid.com/api/newsletter",
"apiUser":"UserName",
"apiKey":"PassWord",
"name":"SendGrid_Testnew"
} |
Sample configuration
Following is a sample proxy service that illustrates how to connect to SendGrid with the init
operation and use the listMarketingEmail operation. You can use this sample as a template for using other operations in this category.
...