UNPKG

ep_rocketchat

Version:
18 lines (13 loc) 333 B
'use strict'; class Settings { constructor(client) { this.client = client; } get(_id, callback) { return this.client.request('GET', `settings/${_id}`, null, callback); } update(_id, value, callback) { return this.client.request('GET', `settings/${_id}`, {value}, callback); } } module.exports = Settings;