summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElmer Thomas <elmer@ThinkingSerious.com>2016-05-11 12:57:19 -0700
committerElmer Thomas <elmer@ThinkingSerious.com>2016-05-11 12:57:19 -0700
commit274d3fa6a47337e1deb173acdbe7308b187d807e (patch)
tree6e25b1390771fad591fa821eead588cff5e9ce5a
parent172686ed8c1615b1cc1c508c55f31fe9c399b75e (diff)
parentf069d2ab1f360e41a07dfe2ad7bca0c148d19d3b (diff)
downloadsendgrid-csharp-274d3fa6a47337e1deb173acdbe7308b187d807e.zip
sendgrid-csharp-274d3fa6a47337e1deb173acdbe7308b187d807e.tar.gz
sendgrid-csharp-274d3fa6a47337e1deb173acdbe7308b187d807e.tar.bz2
Merge pull request #216 from MaximRouiller/patch-1
Fixed code samples
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 2bb57fd..66b1b20 100644
--- a/README.md
+++ b/README.md
@@ -191,7 +191,7 @@ Update the name of an existing API Key [PATCH]
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
var client = new SendGrid.Client(apiKey);
var apiKeyName = "CSharpTestKey";
-ver apiKeyId = "<API Key ID>";
+var apiKeyId = "<API Key ID>";
// Leave off .Result for an asyncronous call
HttpResponseMessage responsePatch = client.ApiKeys.Patch(apiKeyId, apiKeyName).Result;
```
@@ -201,7 +201,7 @@ Revoke an existing API Key [DELETE]
```csharp
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
var client = new SendGrid.Client(apiKey);
-ver apiKeyId = "<API Key ID>";
+var apiKeyId = "<API Key ID>";
// Leave off .Result for an asyncronous call
HttpResponseMessage responseDelete = client.ApiKeys.Delete(apiKeyId).Result;
```
@@ -249,7 +249,7 @@ You can only delete groups that have not been attached to sent mail in the last
```csharp
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
var client = new SendGrid.Client(apiKey);
-ver unsubscribeGroupId = "<UNSUBSCRIBE GROUP ID>";
+var unsubscribeGroupId = "<UNSUBSCRIBE GROUP ID>";
// Leave off .Result for an asyncronous call
HttpResponseMessage responseDelete = client.UnsubscribeGroups.Delete(unsubscribeGroupId).Result;
```
@@ -285,7 +285,7 @@ Delete a recipient email from the suppressions list for a group. [DELETE]
```csharp
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
var client = new SendGrid.Client(apiKey);
-ver groupId = "<UNSUBSCRIBE GROUP ID>";
+var groupId = "<UNSUBSCRIBE GROUP ID>";
// Leave off .Result for an asyncronous call
HttpResponseMessage responseDelete1 = client.Suppressions.Delete(groupId, "example@example.com").Result;
```