Module: LinkedIn::Api::PostMethods
- Included in:
- Client
- Defined in:
- lib/linked_in/api/post_methods.rb
Instance Method Summary collapse
-
#group_posts(options = {}) ⇒ Object
group_posts(options={}).
Instance Method Details
#group_posts(options = {}) ⇒ Object
group_posts(options={})
inputs:
REQUIRED
:group_id - the numeric id of the group to pull posts from.
OPTIONAL
:count - number of posts to retun (max 50)
:start - post number to start pulling from
outputs:
Mash of json results from LinkedIn service
description: Retreive posts from a given group and filter
based on optional inputs.
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/linked_in/api/post_methods.rb', line 20 def group_posts(={}) .reverse_merge!({:order => "recency"}) if [:group_id] group_id = .delete(:group_id) else raise ":group_id option required for group_posts method" end path = "/groups/#{group_id}/posts:(title,summary,creator,id)" simple_query(path, ) end |