Skip to content

Commit

Permalink
Merge pull request #9 from BreakOutEvent/feature/event-add-to-whitelist
Browse files Browse the repository at this point in the history
add event whitelist routes
  • Loading branch information
nerdsupremacist authored Aug 25, 2019
2 parents bc178d8 + afc1e1d commit e16aad5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
8 changes: 8 additions & 0 deletions src/BreakoutApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit e16aad5

Please sign in to comment.