Skip to content

Commit 989fd95

Browse files
Adding new endpoints
1 parent bc11b33 commit 989fd95

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/BreakoutApi.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,22 @@ class BreakoutApi {
505505
.then(resp => resp.data);
506506
}
507507

508+
makeAdmin(userId) {
509+
return this.instance.post(`/admin/user/${userId}/admin/`).then(resp => resp.data);
510+
}
511+
512+
removeAdmin(userId) {
513+
return this.instance.delete(`/admin/user/${userId}/admin/`).then(resp => resp.data);
514+
}
515+
516+
swapPasswords(userId) {
517+
return this.instance.post(`/admin/user/${userId}/swappasswords/`).then(resp => resp.data);
518+
}
519+
520+
cloneSettings(debug=false) {
521+
return new BreakoutApi(this.url, this.clientId, this.clientSecret, this.cloudinaryCloud, this.cloudinaryApiKey, debug);
522+
}
523+
508524
}
509525

510526
module.exports = BreakoutApi;

0 commit comments

Comments
 (0)