summaryrefslogtreecommitdiffstats
path: root/examples/mail/mail.cs
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-06-09 20:04:46 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-06-09 20:04:46 -0700
commitbbca327f542b3d7e6f147250dc94a378e70ad240 (patch)
tree8788d6946d0de743946f7c66e0096c2b6a96928d /examples/mail/mail.cs
parentcb1aa7069247d69ea0d863511d02f124f2f209fb (diff)
downloadsendgrid-csharp-bbca327f542b3d7e6f147250dc94a378e70ad240.zip
sendgrid-csharp-bbca327f542b3d7e6f147250dc94a378e70ad240.tar.gz
sendgrid-csharp-bbca327f542b3d7e6f147250dc94a378e70ad240.tar.bz2
Formatting updates and links to /mail/send helper
Diffstat (limited to 'examples/mail/mail.cs')
-rw-r--r--examples/mail/mail.cs19
1 files changed, 10 insertions, 9 deletions
diff --git a/examples/mail/mail.cs b/examples/mail/mail.cs
index 6ff86f9..0500958 100644
--- a/examples/mail/mail.cs
+++ b/examples/mail/mail.cs
@@ -5,9 +5,9 @@ using System.Collections.Generic;
string _apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
dynamic sg = new SendGrid.SendGridAPIClient(_apiKey);
-##################################################
-# Create a batch ID #
-# POST /mail/batch #
+////////////////////////////////////////////////////////
+// Create a batch ID
+// POST /mail/batch
dynamic response = sg.client.mail.batch.post();
Console.WriteLine(response.StatusCode);
@@ -15,9 +15,9 @@ Console.WriteLine(response.Body.ReadAsStringAsync().Result);
Console.WriteLine(response.Headers.ToString());
Console.ReadLine();
-##################################################
-# Validate batch ID #
-# GET /mail/batch/{batch_id} #
+////////////////////////////////////////////////////////
+// Validate batch ID
+// GET /mail/batch/{batch_id}
var batch_id = "test_url_param";
dynamic response = sg.client.mail.batch._(batch_id).get();
@@ -26,9 +26,10 @@ Console.WriteLine(response.Body.ReadAsStringAsync().Result);
Console.WriteLine(response.Headers.ToString());
Console.ReadLine();
-##################################################
-# v3 Mail Send Beta #
-# POST /mail/send/beta #
+////////////////////////////////////////////////////////
+// v3 Mail Send Beta
+// POST /mail/send/beta
+# This endpoint has a helper, check it out [here](https://github.com/sendgrid/sendgrid-csharp/blob/v3beta/SendGrid/SendGrid/Helpers/Mail/README.md).
string data = @"{
'asm': {