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.jsx24
1 files changed, 24 insertions, 0 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx
index 24eb7eabb..390c07d13 100644
--- a/webapp/client/client.jsx
+++ b/webapp/client/client.jsx
@@ -1975,6 +1975,18 @@ export default class Client {
this.trackEvent('api', 'api_integrations_created', {team_id: this.getTeamId()});
}
+ updateIncomingHook(hook, success, error) {
+ request.
+ post(`${this.getHooksRoute()}/incoming/update`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send(hook).
+ end(this.handleResponse.bind(this, 'updateIncomingHook', success, error));
+
+ this.trackEvent('api', 'api_integrations_updated', {team_id: this.getTeamId()});
+ }
+
deleteIncomingHook(hookId, success, error) {
request.
post(`${this.getHooksRoute()}/incoming/delete`).
@@ -2008,6 +2020,18 @@ export default class Client {
this.trackEvent('api', 'api_integrations_created', {team_id: this.getTeamId()});
}
+ updateOutgoingHook(hook, success, error) {
+ request.
+ post(`${this.getHooksRoute()}/outgoing/update`).
+ set(this.defaultHeaders).
+ type('application/json').
+ accept('application/json').
+ send(hook).
+ end(this.handleResponse.bind(this, 'updateOutgoingHook', success, error));
+
+ this.trackEvent('api', 'api_integrations_updated', {team_id: this.getTeamId()});
+ }
+
deleteOutgoingHook(hookId, success, error) {
request.
post(`${this.getHooksRoute()}/outgoing/delete`).