Skip to content

Commit f9841ad

Browse files
authored
Merge pull request #2 from panxl6/master
doc: fixed error in example.
2 parents 4d59238 + 8a65a4e commit f9841ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ Console.WriteLine(resp.Slug);
305305

306306
```csharp
307307
Notification notification = client.Notification.GetNotificationByTrackingId("<tracking_id>");
308-
Console.WriteLine(notificaiton.Emails[0]);
308+
Console.WriteLine(notification.Emails[0]);
309309
```
310310

311311
**POST** /notifications/:id/add
@@ -318,8 +318,8 @@ notification.Emails = new string?[] { "<your_email>" };
318318
request.Notification = notification;
319319
options.AddNotificationByTrackingIdRequest = request;
320320

321-
Notification notification = client.Notification.AddNotificationByTrackingId("<tracking_id>", options);
322-
Console.WriteLine(notification.Emails[0]);
321+
Notification result = client.Notification.AddNotificationByTrackingId("<tracking_id>", options);
322+
Console.WriteLine(result.Emails[0]);
323323
```
324324

325325
**POST** /notifications/:id/remove
@@ -332,8 +332,8 @@ notification.Emails = new string?[] { "<your_email>" };
332332
request.Notification = notification;
333333
options.DeleteNotificationByTrackingIdRequest = request;
334334

335-
Notification notification = client.Notification.DeleteNotificationByTrackingId("<tracking_id>", options);
336-
Console.WriteLine(notification.Emails[0]);
335+
Notification result = client.Notification.DeleteNotificationByTrackingId("<tracking_id>", options);
336+
Console.WriteLine(result.Emails[0]);
337337
```
338338

339339
### /estimated-delivery-date

icon.png

100755100644
-7.29 KB
Loading

0 commit comments

Comments
 (0)