Module: Mattermost::Endpoint::Status

Included in:
Mattermost::Endpoint
Defined in:
lib/mattermost/endpoint/status.rb

Instance Method Summary collapse

Instance Method Details

#get_user_status(user_id) ⇒ Object



7
8
9
# File 'lib/mattermost/endpoint/status.rb', line 7

def get_user_status(user_id)
	get("/users/#{user_id}/status")
end

#get_user_statuses_by_idObject



15
16
17
# File 'lib/mattermost/endpoint/status.rb', line 15

def get_user_statuses_by_id()
	get("/users/status/ids")
end

#update_user_status(user_id, status) ⇒ Object



11
12
13
# File 'lib/mattermost/endpoint/status.rb', line 11

def update_user_status(user_id, status)
	put("/users/#{user_id}/status", :body => {:status => status}.to_json)
end