Skip to content

Commit c684c2e

Browse files
Merge pull request #3 from BreakOutEvent/feature/messaging
Messaging Endpoints
2 parents 5b3f343 + 704f832 commit c684c2e

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
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.14.0",
3+
"version": "0.15.0",
44
"description": "A JS Api client for the breakout-backend",
55
"main": "src/BreakoutApi.js",
66
"directories": {

src/BreakoutApi.js

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,29 @@ class BreakoutApi {
451451
return this.instance.get(`user/exists/`, { params: { email } } )
452452
.then(resp => resp.data);
453453
}
454-
454+
455455
addSponsoring(teamId, sponsoring) {
456456
return this.instance.post(`event/-1/team/${teamId}/sponsoring/`, sponsoring)
457457
.then(resp => resp.data);
458+
459+
createGroupMessage(users) {
460+
return this.instance.post(`/messaging/`, users)
461+
.then(resp => resp.data);
462+
}
463+
464+
getGroupMessage(groupMessageId) {
465+
return this.instance.get(`/messaging/${groupMessageId}/`)
466+
.then(resp => resp.data);
467+
}
468+
469+
groupMessageAddMessage(groupMessageId, message) {
470+
return this.instance.post(`/messaging/${groupMessageId}/message/`, message)
471+
.then(resp => resp.data);
472+
}
473+
474+
searchUser(searchString) {
475+
return this.instance.get(`/user/search/${searchString}/`)
476+
.then(resp => resp.data);
458477
}
459478

460479
}

0 commit comments

Comments
 (0)