Skip to content

Commit e16aad5

Browse files
Merge pull request #9 from BreakOutEvent/feature/event-add-to-whitelist
add event whitelist routes
2 parents bc178d8 + afc1e1d commit e16aad5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "breakout-api-client",
3-
"version": "0.17.1",
3+
"version": "0.17.2",
44
"description": "A JS Api client for the breakout-backend",
55
"main": "src/BreakoutApi.js",
66
"directories": {

src/BreakoutApi.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,14 @@ class BreakoutApi {
525525
return new BreakoutApi(this.url, this.clientId, this.clientSecret, this.cloudinaryCloud, this.cloudinaryApiKey, debug);
526526
}
527527

528+
eventAddEmailWhitelist(eventId, email) {
529+
return this.instance.post(`/event/${eventId}/whitelistMail/`, {email: email}).then(resp => resp.data);
530+
}
531+
532+
eventAddDomainWhitelist(eventId, domain) {
533+
return this.instance.post(`/event/${eventId}/whitelistDomain/`, {domain: domain}).then(resp => resp.data);
534+
}
535+
528536
}
529537

530538
module.exports = BreakoutApi;

0 commit comments

Comments
 (0)