Skip to content

Commit 274d3fa

Browse files
Merge pull request #216 from MaximRouiller/patch-1
Fixed code samples
2 parents 172686e + f069d2a commit 274d3fa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ Update the name of an existing API Key [PATCH]
191191
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
192192
var client = new SendGrid.Client(apiKey);
193193
var apiKeyName = "CSharpTestKey";
194-
ver apiKeyId = "<API Key ID>";
194+
var apiKeyId = "<API Key ID>";
195195
// Leave off .Result for an asyncronous call
196196
HttpResponseMessage responsePatch = client.ApiKeys.Patch(apiKeyId, apiKeyName).Result;
197197
```
@@ -201,7 +201,7 @@ Revoke an existing API Key [DELETE]
201201
```csharp
202202
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
203203
var client = new SendGrid.Client(apiKey);
204-
ver apiKeyId = "<API Key ID>";
204+
var apiKeyId = "<API Key ID>";
205205
// Leave off .Result for an asyncronous call
206206
HttpResponseMessage responseDelete = client.ApiKeys.Delete(apiKeyId).Result;
207207
```
@@ -249,7 +249,7 @@ You can only delete groups that have not been attached to sent mail in the last
249249
```csharp
250250
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
251251
var client = new SendGrid.Client(apiKey);
252-
ver unsubscribeGroupId = "<UNSUBSCRIBE GROUP ID>";
252+
var unsubscribeGroupId = "<UNSUBSCRIBE GROUP ID>";
253253
// Leave off .Result for an asyncronous call
254254
HttpResponseMessage responseDelete = client.UnsubscribeGroups.Delete(unsubscribeGroupId).Result;
255255
```
@@ -285,7 +285,7 @@ Delete a recipient email from the suppressions list for a group. [DELETE]
285285
```csharp
286286
String apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
287287
var client = new SendGrid.Client(apiKey);
288-
ver groupId = "<UNSUBSCRIBE GROUP ID>";
288+
var groupId = "<UNSUBSCRIBE GROUP ID>";
289289
// Leave off .Result for an asyncronous call
290290
HttpResponseMessage responseDelete1 = client.Suppressions.Delete(groupId, "[email protected]").Result;
291291
```

0 commit comments

Comments
 (0)