summaryrefslogtreecommitdiffstats
path: root/webapp/client
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client')
-rw-r--r--webapp/client/client.jsx20
1 files changed, 20 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 28d121011..5dda975f6 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1553,6 +1553,26 @@ export default class Client {
end(this.handleResponse.bind(this, 'getOAuthAppInfo', success, error));
}
+ getAuthorizedApps(success, error) {
+ request.
+ get(`${this.getOAuthRoute()}/authorized`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send().
+ end(this.handleResponse.bind(this, 'getAuthorizedApps', success, error));
+ }
+
+ deauthorizeOAuthApp(id, success, error) {
+ request.
+ post(`${this.getOAuthRoute()}/${id}/deauthorize`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send().
+ end(this.handleResponse.bind(this, 'deauthorizeOAuthApp', success, error));
+ }
+
// Routes for Hooks
addIncomingHook(hook, success, error) {