summaryrefslogtreecommitdiffstats
path: root/webapp/client/client.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/client/client.jsx')
-rw-r--r--webapp/client/client.jsx30
1 files changed, 30 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index cf015bc84..b200b2379 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1498,6 +1498,36 @@ export default class Client {
end(this.handleResponse.bind(this, 'allowOAuth2', success, error));
}
+ listOAuthApps(success, error) {
+ request.
+ get(`${this.getOAuthRoute()}/list`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send().
+ end(this.handleResponse.bind(this, 'getOAuthApps', success, error));
+ }
+
+ deleteOAuthApp(id, success, error) {
+ request.
+ post(`${this.getOAuthRoute()}/delete`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send({id}).
+ end(this.handleResponse.bind(this, 'deleteOAuthApp', success, error));
+ }
+
+ getOAuthAppInfo(id, success, error) {
+ request.
+ get(`${this.getOAuthRoute()}/app/${id}`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send().
+ end(this.handleResponse.bind(this, 'getOAuthAppInfo', success, error));
+ }
+
// Routes for Hooks
addIncomingHook(hook, success, error) {