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;