summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorElmer Thomas <elmer@thinkingserious.com>2016-06-15 14:23:48 -0700
committerElmer Thomas <elmer@thinkingserious.com>2016-06-15 14:23:48 -0700
commit6432c3c93b1dda85b2410f32b9c60574443d2b8f (patch)
tree1665bf875f0783caca27e323417bb96d909a5462 /README.md
parente9dfa87619976abcd9cb21c8bef4280af0ff820b (diff)
downloadsendgrid-csharp-6432c3c93b1dda85b2410f32b9c60574443d2b8f.zip
sendgrid-csharp-6432c3c93b1dda85b2410f32b9c60574443d2b8f.tar.gz
sendgrid-csharp-6432c3c93b1dda85b2410f32b9c60574443d2b8f.tar.bz2
Updating usage docs and examples based on testing against deployed Nuget
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/README.md b/README.md
index 638008b..ddff138 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,7 @@ Add the following namespaces to use the library:
using System;
using System.Web.Script.Serialization;
using SendGrid;
+using SendGrid.Helpers.Mail; // Include if you want to use the Mail Helper
```
## Dependencies
@@ -60,6 +61,7 @@ using SendGrid;
```csharp
using System;
using SendGrid;
+using SendGrid.Helpers.Mail;
namespace Example
{
@@ -68,7 +70,7 @@ namespace Example
private static void Main()
{
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
- dynamic sg = new SendGrid.SendGridAPIClient(apiKey);
+ dynamic sg = new SendGridAPIClient(apiKey);
Email from = new Email("test@example.com");
String subject = "Hello World from the SendGrid CSharp Library";
@@ -86,7 +88,6 @@ namespace Example
```csharp
using System;
-using SendGrid;
namespace Example
{
@@ -96,7 +97,7 @@ namespace Example
{
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
dynamic sg = new SendGrid.SendGridAPIClient(apiKey);
- dynamic response = sg.client.api_keys.get(queryParams: queryParams);
+ dynamic response = sg.client.api_keys.get();
}
}
}