-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03545fe
commit 572c4a4
Showing
4 changed files
with
43 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Notification Endpoint | ||
|
||
##GetNotificationAsync | ||
Returns the data about a specific notification. OAuth authentication required. | ||
|
||
var client = new ImgurClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", YOUR_OAUTH2_TOKEN); | ||
var endpoint = new ConversationEndpoint(client); | ||
var notification = await endpoint.GetNotificationAsync("NOTIFICATION_ID"); | ||
##GetNotificationsAsync | ||
Returns all of the notifications for the user. OAuth authentication required. | ||
|
||
var client = new ImgurClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", YOUR_OAUTH2_TOKEN); | ||
var endpoint = new ConversationEndpoint(client); | ||
var notifications = await endpoint.GetNotificationsAsync(); | ||
|
||
##MarkNotificationViewedAsync | ||
Marks a notification as viewed. OAuth authentication required. | ||
|
||
var client = new ImgurClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", YOUR_OAUTH2_TOKEN); | ||
var endpoint = new ConversationEndpoint(client); | ||
var marked = await endpoint.MarkNotificationViewedAsync("NOTIFICATION_ID"); | ||
|
||
##MarkNotificationsViewedAsync | ||
Marks notifications as viewed. OAuth authentication required. | ||
|
||
var client = new ImgurClient("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET", YOUR_OAUTH2_TOKEN); | ||
var endpoint = new ConversationEndpoint(client); | ||
var marked = await endpoint.MarkNotificationsViewedAsync(new List<string>{"NOTIFICATION_ID", "ANOTHER_NOTIFICATION_ID"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters