Method: Databasedotcom::Chatter::Group.join
- Defined in:
- lib/databasedotcom/chatter/group.rb
.join(client, group_id, user_id = "me") ⇒ Object
Join the group identified by group_id as the user identified by user_id.
23 24 25 26 27 |
# File 'lib/databasedotcom/chatter/group.rb', line 23 def self.join(client, group_id, user_id="me") url = "/services/data/v#{client.version}/chatter/groups/#{group_id}/members" response = client.http_post(url, nil, :userId => user_id) GroupMembership.new(client, response.body) end |