summaryrefslogtreecommitdiffstats
path: root/SendGrid/Example/Example.cs
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-05-10 14:57:30 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-05-10 14:57:30 -0700
commite6caebf2dc8842d3c64f0fbd74efcab211a279c7 (patch)
tree6e7ebab7a3a586a8612f92e5b40fd1b869c2c506 /SendGrid/Example/Example.cs
parent78a455345607ca9ff547ef7bf21109df5be5bcb6 (diff)
downloadsendgrid-csharp-e6caebf2dc8842d3c64f0fbd74efcab211a279c7.zip
sendgrid-csharp-e6caebf2dc8842d3c64f0fbd74efcab211a279c7.tar.gz
sendgrid-csharp-e6caebf2dc8842d3c64f0fbd74efcab211a279c7.tar.bz2
Ready to deploy
Diffstat (limited to 'SendGrid/Example/Example.cs')
-rw-r--r--SendGrid/Example/Example.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/SendGrid/Example/Example.cs b/SendGrid/Example/Example.cs
index f48780f..30ccea4 100644
--- a/SendGrid/Example/Example.cs
+++ b/SendGrid/Example/Example.cs
@@ -21,7 +21,7 @@ namespace Example
private static void HelloEmail()
{
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
- dynamic sg = new SendGrid.SendGridAPIClient(apiKey, "https://3wyb2hp7emnqja6ys.stoplight-proxy.io");
+ dynamic sg = new SendGrid.SendGridAPIClient(apiKey, "https://api.sendgrid.com");
Email from = new Email("dx@sendgrid.com");
String subject = "Hello World from the SendGrid CSharp Library";
@@ -47,7 +47,7 @@ namespace Example
private static void KitchenSink()
{
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
- dynamic sg = new SendGrid.SendGridAPIClient(apiKey, "https://3wyb2hp7emnqja6ys.stoplight-proxy.io");
+ dynamic sg = new SendGrid.SendGridAPIClient(apiKey, "https://api.sendgrid.com");
Mail mail = new Mail();
@@ -176,7 +176,8 @@ namespace Example
mail.SetIpPoolId = "23";
- mail.BatchId = "some_batch_id";
+ // This must be a valid [batch ID](https://sendgrid.com/docs/API_Reference/SMTP_API/scheduling_parameters.html)
+ // mail.BatchId = "some_batch_id";
MailSettings mailSettings = new MailSettings();
BCCSettings bccSettings = new BCCSettings();
@@ -245,7 +246,7 @@ namespace Example
private static void ApiKeys()
{
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
- dynamic sg = new SendGrid.SendGridAPIClient(apiKey, "https://e9sk3d3bfaikbpdq7.stoplight-proxy.io");
+ dynamic sg = new SendGrid.SendGridAPIClient(apiKey, "https://api.sendgrid.com");
string queryParams = @"{
'limit': 100