Method: Databasedotcom::Chatter::User.status

Defined in:
lib/databasedotcom/chatter/user.rb

.status(client, subject_id = "me") ⇒ Object

Returns the current status of the User identified by subject_id.



47
48
49
50
51
# File 'lib/databasedotcom/chatter/user.rb', line 47

def self.status(client, subject_id="me")
  url = "/services/data/v#{client.version}/chatter/users/#{subject_id}/status"
  result = client.http_get(url)
  JSON.parse(result.body)
end