summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-05-12 13:23:24 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-05-12 13:23:24 -0700
commit61ff8f668f8e0f5aeab2027f6830e52cbd178d1b (patch)
tree8d585b9f48098e3d2d9590598ca7893e5f537547
parent8b59e12e2bd34b1d44083299ef2c9e383bf57e27 (diff)
downloadsendgrid-csharp-61ff8f668f8e0f5aeab2027f6830e52cbd178d1b.zip
sendgrid-csharp-61ff8f668f8e0f5aeab2027f6830e52cbd178d1b.tar.gz
sendgrid-csharp-61ff8f668f8e0f5aeab2027f6830e52cbd178d1b.tar.bz2
Updated example data and README
-rw-r--r--CONTRIBUTING.md6
-rw-r--r--README.md37
-rw-r--r--SendGrid/Example/Example.cs64
-rw-r--r--SendGrid/UnitTest/UnitTest.cs64
4 files changed, 95 insertions, 76 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 94ed157..3877c27 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -119,12 +119,6 @@ Click on the Example project, then click the `Start` button in the menu.
Generally, we follow the style guidelines as suggested by the official language. However, we ask that you conform to the styles that already exist in the library. If you wish to deviate, please explain your reasoning. In this case, we generally follow the [C# Naming Conventions](https://msdn.microsoft.com/library/ms229045(v=vs.100).aspx) and the suggestions provided by the Visual Studio IDE.
-### Directory Structure
-
-* `SendGrid` for the interface to the SendGrid API
-* `Example`, for example calls
-* `UnitTest`, for all tests
-
## Creating a Pull Request<a name="creating_a_pull_request"></a>
1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork,
diff --git a/README.md b/README.md
index c0bbf50..5dba9bb 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
**NOTE: The `/mail/send/beta` endpoint is currently in beta!
-Since this is not a general release, we do not recommend POSTing production level traffic through this endpoint or integrating your production servers with this endpoint.
+Since this is not a general release, we do not recommend POSTing production level traffic through this endpoint or integrating your production servers with this endpoint.
When this endpoint is ready for general release, your code will require an update in order to use the official URI.
@@ -12,13 +12,38 @@ By using this endpoint, you accept that you may encounter bugs and that the endp
# Installation
+## Environment Variables
+
+First, get your free SendGrid account [here](https://sendgrid.com/free?source=sendgrid-csharp).
+
+Next, update your Environment (user space) with your [SENDGRID_API_KEY](https://app.sendgrid.com/settings/api_keys).
+
+## TRYING OUT THE V3 BETA MAIL SEND
+
+* Check out the v3beta branch from `https://github.com/sendgrid/sendgrid-csharp.git` using your favorite Git client.
+* Open the [solution](https://github.com/sendgrid/sendgrid-csharp/blob/v3beta/SendGrid/SendGrid.sln) in Visual Studio (we have tested with the Community Edition).
+* Update the to and from [emails](https://github.com/sendgrid/sendgrid-csharp/blob/v3beta/SendGrid/Example/Example.cs#L26).
+* Build the Solution.
+* Build the Example project and click `Start`.
+* Check out the documentation for [Web API v3 /mail/send/beta endpoint](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html).
+
+## TRYING OUT THE V3 BETA WEB API
+
+* Check out the v3beta branch from `https://github.com/sendgrid/sendgrid-csharp.git` using your favorite Git client.
+* Open the [solution](https://github.com/sendgrid/sendgrid-csharp/blob/v3beta/SendGrid/SendGrid.sln) in Visual Studio (we have tested with the Community Edition).
+* Check out the documentation for [Web API v3 endpoints](https://sendgrid.com/docs/API_Reference/Web_API_v3/index.html).
+* Review the corresponding [examples](https://github.com/sendgrid/sendgrid-python/blob/v3beta/examples).
+* From the root directory of this repo, use `from sendgrid import *`
+
+## Once we are out of v3 BETA, the following will apply
+
To use SendGrid in your C# project, you can either <a href="https://github.com/sendgrid/sendgrid-csharp.git">download the SendGrid C# .NET libraries directly from our Github repository</a> or, if you have the NuGet package manager installed, you can grab them automatically.
```
-PM> Install-Package SendGrid
+PM> Install-Package SendGrid
```
-Once you have the SendGrid libraries properly referenced in your project, you can include calls to them in your code.
+Once you have the SendGrid libraries properly referenced in your project, you can include calls to them in your code.
For a sample implementation, check the [Example](https://github.com/sendgrid/sendgrid-csharp/tree/master/SendGrid/Example) folder.
Add the following namespaces to use the library:
@@ -32,7 +57,7 @@ using SendGrid;
- [SendGrid.CSharp.HTTP.Client](https://github.com/sendgrid/csharp-http-client)
-## Environment Variables
+## Environment Variables
First, get your free SendGrid account [here](https://sendgrid.com/free?source=sendgrid-csharp).
@@ -55,9 +80,9 @@ namespace Example
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
dynamic sg = new SendGrid.SendGridAPIClient(apiKey);
- Email from = new Email("dx@sendgrid.com");
+ Email from = new Email("test@example.com");
String subject = "Hello World from the SendGrid CSharp Library";
- Email to = new Email("elmer.thomas@sendgrid.com");
+ Email to = new Email("test@example.com");
Content content = new Content("text/plain", "Textual content");
Mail mail = new Mail(from, subject, to, content);
diff --git a/SendGrid/Example/Example.cs b/SendGrid/Example/Example.cs
index 30ccea4..763c6d8 100644
--- a/SendGrid/Example/Example.cs
+++ b/SendGrid/Example/Example.cs
@@ -13,7 +13,7 @@ namespace Example
HelloEmail(); // this will actually send an email
KitchenSink(); // this will only send an email if you set SandBox Mode to false
- // v3 Web API
+ // v3 Web API
ApiKeys();
}
@@ -23,12 +23,12 @@ namespace Example
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
dynamic sg = new SendGrid.SendGridAPIClient(apiKey, "https://api.sendgrid.com");
- Email from = new Email("dx@sendgrid.com");
+ Email from = new Email("test@example.com");
String subject = "Hello World from the SendGrid CSharp Library";
- Email to = new Email("elmer.thomas@sendgrid.com");
+ Email to = new Email("test@example.com");
Content content = new Content("text/plain", "Textual content");
Mail mail = new Mail(from, subject, to, content);
- Email email = new Email("elmer.thomas+add_second_email@sendgrid.com");
+ Email email = new Email("test2@example.com");
mail.Personalization[0].AddTo(email);
String ret = mail.Get();
@@ -52,38 +52,38 @@ namespace Example
Mail mail = new Mail();
Email email = new Email();
- email.Name = "DX";
- email.Address = "dx@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
mail.From = email;
mail.Subject = "Hello World from the SendGrid CSharp Library";
Personalization personalization = new Personalization();
email = new Email();
- email.Name = "Elmer Thomas";
- email.Address = "elmer.thomas@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test1@example.com";
personalization.AddTo(email);
email = new Email();
- email.Name = "Matt Bernier";
- email.Address = "matt.bernier@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test2@example.com";
personalization.AddCc(email);
email = new Email();
- email.Name = "Eric Shallock";
- email.Address = "eric.shallock@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test3@example.com";
personalization.AddCc(email);
email = new Email();
- email.Name = "Elmer Thomas Secret";
- email.Address = "elmer.thomas + secret@sengrid.com";
+ email.Name = "Example User";
+ email.Address = "test4@example.com";
personalization.AddBcc(email);
email = new Email();
- email.Name = "Elmer Thomas Secret 2";
- email.Address = "elmer.thomas+secret@elmer.thomas.com";
+ email.Name = "Example User";
+ email.Address = "test5@example.com";
personalization.AddBcc(email);
personalization.Subject = "Thank you for signing up, %name%";
personalization.AddHeader("X-Test", "True");
personalization.AddHeader("X-Mock", "True");
- personalization.AddSubstitution("%name%", "Elmer");
- personalization.AddSubstitution("%city%", "Moreno Valley");
+ personalization.AddSubstitution("%name%", "Example User");
+ personalization.AddSubstitution("%city%", "Denver");
personalization.AddCustomArgs("marketing", "false");
personalization.AddCustomArgs("transactional", "true");
personalization.SendAt = 1461775051;
@@ -91,30 +91,30 @@ namespace Example
personalization = new Personalization();
email = new Email();
- email.Name = "Elmer Thomas";
- email.Address = "elmer.thomas@gmail.com";
+ email.Name = "Example User";
+ email.Address = "test1@example.com";
personalization.AddTo(email);
email = new Email();
- email.Name = "Matt Bernier";
- email.Address = "matt.bernier@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test2@example.com";
personalization.AddCc(email);
email = new Email();
- email.Name = "Eric Shallock";
- email.Address = "eric.shallock@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test3@example.com";
personalization.AddCc(email);
email = new Email();
- email.Name = "Elmer Thomas Secret";
- email.Address = "elmer.thomas + secret@sengrid.com";
+ email.Name = "Example User";
+ email.Address = "test4@example.com";
personalization.AddBcc(email);
email = new Email();
- email.Name = "Elmer Thomas Secret 2";
- email.Address = "elmer.thomas+secret@elmer.thomas.com";
+ email.Name = "Example User";
+ email.Address = "test5@example.com";
personalization.AddBcc(email);
personalization.Subject = "Thank you for signing up, %name%";
personalization.AddHeader("X-Test", "True");
personalization.AddHeader("X-Mock", "True");
- personalization.AddSubstitution("%name%", "Elmer");
- personalization.AddSubstitution("%city%", "Moreno Valley");
+ personalization.AddSubstitution("%name%", "Example User");
+ personalization.AddSubstitution("%city%", "Denver");
personalization.AddCustomArgs("marketing", "false");
personalization.AddCustomArgs("transactional", "true");
personalization.SendAt = 1461775051;
@@ -182,7 +182,7 @@ namespace Example
MailSettings mailSettings = new MailSettings();
BCCSettings bccSettings = new BCCSettings();
bccSettings.Enable = true;
- bccSettings.Email = "dx@sendgrid.com";
+ bccSettings.Email = "test@example.com";
mailSettings.BccSettings = bccSettings;
BypassListManagement bypassListManagement = new BypassListManagement();
bypassListManagement.Enable = true;
@@ -228,7 +228,7 @@ namespace Example
mail.TrackingSettings = trackingSettings;
email = new Email();
- email.Address = "dx@sendgrid.com";
+ email.Address = "test@example.com";
mail.ReplyTo = email;
String ret = mail.Get();
diff --git a/SendGrid/UnitTest/UnitTest.cs b/SendGrid/UnitTest/UnitTest.cs
index c8105be..fb5c374 100644
--- a/SendGrid/UnitTest/UnitTest.cs
+++ b/SendGrid/UnitTest/UnitTest.cs
@@ -37,12 +37,12 @@ namespace UnitTest
SendGrid.Helpers.Mail.Mail mail = new SendGrid.Helpers.Mail.Mail();
Email email = new Email();
- email.Address = "dx@sendgrid.com";
+ email.Address = "test@example.com";
mail.From = email;
Personalization personalization = new Personalization();
email = new Email();
- email.Address = "elmer.thomas@sendgrid.com";
+ email.Address = "test@example.com";
personalization.AddTo(email);
mail.AddPersonalization(personalization);
@@ -58,7 +58,7 @@ namespace UnitTest
mail.AddContent(content);
String ret = mail.Get();
- Assert.AreEqual(ret, "{\"from\":{\"email\":\"dx@sendgrid.com\"},\"subject\":\"Hello World from the SendGrid CSharp Library\",\"personalizations\":[{\"to\":[{\"email\":\"elmer.thomas@sendgrid.com\"}]}],\"content\":[{\"type\":\"text/plain\",\"value\":\"Textual content\"},{\"type\":\"text/html\",\"value\":\"<html><body>HTML content</body></html>\"}]}");
+ Assert.AreEqual(ret, "{\"from\":{\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid CSharp Library\",\"personalizations\":[{\"to\":[{\"email\":\"test@example.com\"}]}],\"content\":[{\"type\":\"text/plain\",\"value\":\"Textual content\"},{\"type\":\"text/html\",\"value\":\"<html><body>HTML content</body></html>\"}]}");
}
// All paramaters available for sending an email
@@ -68,38 +68,38 @@ namespace UnitTest
SendGrid.Helpers.Mail.Mail mail = new SendGrid.Helpers.Mail.Mail();
Email email = new Email();
- email.Name = "DX";
- email.Address = "dx@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
mail.From = email;
mail.Subject = "Hello World from the SendGrid CSharp Library";
Personalization personalization = new Personalization();
email = new Email();
- email.Name = "Elmer Thomas";
- email.Address = "elmer.thomas@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddTo(email);
email = new Email();
- email.Name = "Matt Bernier";
- email.Address = "matt.bernier@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddCc(email);
email = new Email();
- email.Name = "Eric Shallock";
- email.Address = "eric.shallock@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddCc(email);
email = new Email();
- email.Name = "Elmer Thomas Secret";
- email.Address = "elmer.thomas + secret@sengrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddBcc(email);
email = new Email();
- email.Name = "Elmer Thomas Secret 2";
- email.Address = "elmer.thomas+secret@elmer.thomas.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddBcc(email);
personalization.Subject = "Thank you for signing up, %name%";
personalization.AddHeader("X-Test", "True");
personalization.AddHeader("X-Mock", "True");
- personalization.AddSubstitution("%name%", "Elmer");
- personalization.AddSubstitution("%city%", "Moreno Valley");
+ personalization.AddSubstitution("%name%", "Example User");
+ personalization.AddSubstitution("%city%", "Denver");
personalization.AddCustomArgs("marketing", "false");
personalization.AddCustomArgs("transactional", "true");
personalization.SendAt = 1461775051;
@@ -107,30 +107,30 @@ namespace UnitTest
personalization = new Personalization();
email = new Email();
- email.Name = "Elmer Thomas";
- email.Address = "elmer.thomas@gmail.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddTo(email);
email = new Email();
- email.Name = "Matt Bernier";
- email.Address = "matt.bernier@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddCc(email);
email = new Email();
- email.Name = "Eric Shallock";
- email.Address = "eric.shallock@sendgrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddCc(email);
email = new Email();
- email.Name = "Elmer Thomas Secret";
- email.Address = "elmer.thomas + secret@sengrid.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddBcc(email);
email = new Email();
- email.Name = "Elmer Thomas Secret 2";
- email.Address = "elmer.thomas+secret@elmer.thomas.com";
+ email.Name = "Example User";
+ email.Address = "test@example.com";
personalization.AddBcc(email);
personalization.Subject = "Thank you for signing up, %name%";
personalization.AddHeader("X-Test", "True");
personalization.AddHeader("X-Mock", "True");
- personalization.AddSubstitution("%name%", "Elmer");
- personalization.AddSubstitution("%city%", "Moreno Valley");
+ personalization.AddSubstitution("%name%", "Example User");
+ personalization.AddSubstitution("%city%", "Denver");
personalization.AddCustomArgs("marketing", "false");
personalization.AddCustomArgs("transactional", "true");
personalization.SendAt = 1461775051;
@@ -198,7 +198,7 @@ namespace UnitTest
MailSettings mailSettings = new MailSettings();
BCCSettings bccSettings = new BCCSettings();
bccSettings.Enable = true;
- bccSettings.Email = "dx@sendgrid.com";
+ bccSettings.Email = "test@example.com";
mailSettings.BccSettings = bccSettings;
BypassListManagement bypassListManagement = new BypassListManagement();
bypassListManagement.Enable = true;
@@ -244,11 +244,11 @@ namespace UnitTest
mail.TrackingSettings = trackingSettings;
email = new Email();
- email.Address = "dx@sendgrid.com";
+ email.Address = "test@example.com";
mail.ReplyTo = email;
String ret = mail.Get();
- Assert.AreEqual(ret, "{\"from\":{\"name\":\"DX\",\"email\":\"dx@sendgrid.com\"},\"subject\":\"Hello World from the SendGrid CSharp Library\",\"personalizations\":[{\"to\":[{\"name\":\"Elmer Thomas\",\"email\":\"elmer.thomas@sendgrid.com\"}],\"cc\":[{\"name\":\"Matt Bernier\",\"email\":\"matt.bernier@sendgrid.com\"},{\"name\":\"Eric Shallock\",\"email\":\"eric.shallock@sendgrid.com\"}],\"bcc\":[{\"name\":\"Elmer Thomas Secret\",\"email\":\"elmer.thomas + secret@sengrid.com\"},{\"name\":\"Elmer Thomas Secret 2\",\"email\":\"elmer.thomas+secret@elmer.thomas.com\"}],\"subject\":\"Thank you for signing up, %name%\",\"headers\":{\"X-Test\":\"True\",\"X-Mock\":\"True\"},\"substitutions\":{\"%name%\":\"Elmer\",\"%city%\":\"Moreno Valley\"},\"custom_args\":{\"marketing\":\"false\",\"transactional\":\"true\"},\"send_at\":1461775051},{\"to\":[{\"name\":\"Elmer Thomas\",\"email\":\"elmer.thomas@gmail.com\"}],\"cc\":[{\"name\":\"Matt Bernier\",\"email\":\"matt.bernier@sendgrid.com\"},{\"name\":\"Eric Shallock\",\"email\":\"eric.shallock@sendgrid.com\"}],\"bcc\":[{\"name\":\"Elmer Thomas Secret\",\"email\":\"elmer.thomas + secret@sengrid.com\"},{\"name\":\"Elmer Thomas Secret 2\",\"email\":\"elmer.thomas+secret@elmer.thomas.com\"}],\"subject\":\"Thank you for signing up, %name%\",\"headers\":{\"X-Test\":\"True\",\"X-Mock\":\"True\"},\"substitutions\":{\"%name%\":\"Elmer\",\"%city%\":\"Moreno Valley\"},\"custom_args\":{\"marketing\":\"false\",\"transactional\":\"true\"},\"send_at\":1461775051}],\"content\":[{\"type\":\"text/plain\",\"value\":\"Textual content\"},{\"type\":\"text/html\",\"value\":\"<html><body>HTML content</body></html>\"},{\"type\":\"text/calendar\",\"value\":\"Party Time!!\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"headers\":{\"X-Day\":\"Monday\",\"X-Month\":\"January\"},\"sections\":{\"%section1\":\"Substitution for Section 1 Tag\",\"%section2\":\"Substitution for Section 2 Tag\"},\"categories\":[\"customer\",\"vip\"],\"custom_args\":{\"campaign\":\"welcome\",\"sequence\":\"2\"},\"send_at\":1461775051,\"asm\":{\"group_id\":3,\"groups_to_display\":[1,4,5]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"dx@sendgrid.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Some Footer Text\",\"html\":\"<bold>Some HTML Here</bold>\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://gotchya.example.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"<bold>HTML to insert into the text/html portion of the message</bold>\",\"substitution_tag\":\"text to insert into the text/plain portion of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_medium\":\"some medium\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some campaign\"}},\"reply_to\":{\"email\":\"dx@sendgrid.com\"}}");
+ Assert.AreEqual(ret, "{\"from\":{\"name\":\"DX\",\"email\":\"test@example.com\"},\"subject\":\"Hello World from the SendGrid CSharp Library\",\"personalizations\":[{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Thank you for signing up, %name%\",\"headers\":{\"X-Test\":\"True\",\"X-Mock\":\"True\"},\"substitutions\":{\"%name%\":\"Example User\",\"%city%\":\"Denver\"},\"custom_args\":{\"marketing\":\"false\",\"transactional\":\"true\"},\"send_at\":1461775051},{\"to\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"cc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"bcc\":[{\"name\":\"Example User\",\"email\":\"test@example.com\"},{\"name\":\"Example User\",\"email\":\"test@example.com\"}],\"subject\":\"Thank you for signing up, %name%\",\"headers\":{\"X-Test\":\"True\",\"X-Mock\":\"True\"},\"substitutions\":{\"%name%\":\"Example User\",\"%city%\":\"Denver\"},\"custom_args\":{\"marketing\":\"false\",\"transactional\":\"true\"},\"send_at\":1461775051}],\"content\":[{\"type\":\"text/plain\",\"value\":\"Textual content\"},{\"type\":\"text/html\",\"value\":\"<html><body>HTML content</body></html>\"},{\"type\":\"text/calendar\",\"value\":\"Party Time!!\"}],\"attachments\":[{\"content\":\"TG9yZW0gaXBzdW0gZG9sb3Igc2l0IGFtZXQsIGNvbnNlY3RldHVyIGFkaXBpc2NpbmcgZWxpdC4gQ3JhcyBwdW12\",\"type\":\"application/pdf\",\"filename\":\"balance_001.pdf\",\"disposition\":\"attachment\",\"content_id\":\"Balance Sheet\"},{\"content\":\"BwdW\",\"type\":\"image/png\",\"filename\":\"banner.png\",\"disposition\":\"inline\",\"content_id\":\"Banner\"}],\"template_id\":\"13b8f94f-bcae-4ec6-b752-70d6cb59f932\",\"headers\":{\"X-Day\":\"Monday\",\"X-Month\":\"January\"},\"sections\":{\"%section1\":\"Substitution for Section 1 Tag\",\"%section2\":\"Substitution for Section 2 Tag\"},\"categories\":[\"customer\",\"vip\"],\"custom_args\":{\"campaign\":\"welcome\",\"sequence\":\"2\"},\"send_at\":1461775051,\"asm\":{\"group_id\":3,\"groups_to_display\":[1,4,5]},\"ip_pool_name\":\"23\",\"mail_settings\":{\"bcc\":{\"enable\":true,\"email\":\"test@example.com\"},\"bypass_list_management\":{\"enable\":true},\"footer\":{\"enable\":true,\"text\":\"Some Footer Text\",\"html\":\"<bold>Some HTML Here</bold>\"},\"sandbox_mode\":{\"enable\":true},\"spam_check\":{\"enable\":true,\"threshold\":1,\"post_to_url\":\"https://gotchya.example.com\"}},\"tracking_settings\":{\"click_tracking\":{\"enable\":true},\"open_tracking\":{\"enable\":true,\"substitution_tag\":\"Optional tag to replace with the open image in the body of the message\"},\"subscription_tracking\":{\"enable\":true,\"text\":\"text to insert into the text/plain portion of the message\",\"html\":\"<bold>HTML to insert into the text/html portion of the message</bold>\",\"substitution_tag\":\"text to insert into the text/plain portion of the message\"},\"ganalytics\":{\"enable\":true,\"utm_source\":\"some source\",\"utm_medium\":\"some medium\",\"utm_term\":\"some term\",\"utm_content\":\"some content\",\"utm_campaign\":\"some campaign\"}},\"reply_to\":{\"email\":\"test@example.com\"}}");
}
}
}