You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-1Lines changed: 28 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,9 +79,14 @@ to make working with the API easier, and the `pubsub` module which is a library
79
79
80
80
### Public vs Secured APIs
81
81
82
-
For the API client, there are two classes, `DefaultApi`and `PublicApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains api calls
82
+
For the API client, there are three classes, `DefaultApi`, `PublicApi`, and `ModerationApi`. The `DefaultApi` contains methods that require your API key, and `PublicApi` contains methods
83
83
that can be made directly from a browser/mobile device/etc without authentication.
84
84
85
+
The `ModerationApi` powers the moderator dashboard. It contains methods for comment moderation (list, count, search, logs, and export), moderation actions (remove/restore,
86
+
flag, set review/spam/approval status, votes, and reopen/close thread), bans (ban from comment, undo a ban, pre-ban summaries, ban status and preferences, and banned-user counts),
87
+
and badges & trust (award/remove a badge, manual badges, get/set trust factor, and user internal profile). Every `ModerationApi` method accepts an `sso` parameter so the call can be
88
+
performed on behalf of an SSO-authenticated moderator.
89
+
85
90
## Quick Start
86
91
87
92
### Using Authenticated APIs (DefaultApi)
@@ -146,6 +151,28 @@ try {
146
151
}
147
152
```
148
153
154
+
### Using Moderation APIs (ModerationApi)
155
+
156
+
The `ModerationApi` drives the moderator dashboard. Each method accepts an `sso` parameter identifying the SSO-authenticated moderator on whose behalf the request is made:
0 commit comments