From afc1e1d00b2ef4f140e47ca2737bc2a08a66eb12 Mon Sep 17 00:00:00 2001 From: Philipp Piwo Date: Sun, 25 Aug 2019 18:12:52 +0200 Subject: [PATCH] add event whitelist routes --- package.json | 2 +- src/BreakoutApi.js | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a932974..2e20e7a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "breakout-api-client", - "version": "0.17.1", + "version": "0.17.2", "description": "A JS Api client for the breakout-backend", "main": "src/BreakoutApi.js", "directories": { diff --git a/src/BreakoutApi.js b/src/BreakoutApi.js index a4b8443..5b93088 100644 --- a/src/BreakoutApi.js +++ b/src/BreakoutApi.js @@ -525,6 +525,14 @@ class BreakoutApi { return new BreakoutApi(this.url, this.clientId, this.clientSecret, this.cloudinaryCloud, this.cloudinaryApiKey, debug); } + eventAddEmailWhitelist(eventId, email) { + return this.instance.post(`/event/${eventId}/whitelistMail/`, {email: email}).then(resp => resp.data); + } + + eventAddDomainWhitelist(eventId, domain) { + return this.instance.post(`/event/${eventId}/whitelistDomain/`, {domain: domain}).then(resp => resp.data); + } + } module.exports = BreakoutApi;