Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 465 Bytes

settings.md

File metadata and controls

21 lines (15 loc) · 465 Bytes

Settings API

settings get

require 'rocketchat'

rocket_server = RocketChat::Server.new('http://your.server.address/')
session = rocket_server.login('username', 'password')
value = session.settings['Livechat_enabled']

settings set

require 'rocketchat'

rocket_server = RocketChat::Server.new('http://your.server.address/')
session = rocket_server.login('username', 'password')
session.settings['Livechat_enabled'] = 'value'