Module: LinkedIn::Api::CommentMethods
- Included in:
- Client
- Defined in:
- lib/linked_in/api/comment_methods.rb
Instance Method Summary collapse
-
#get_comments(options = {}) ⇒ Object
get_comments().
Instance Method Details
#get_comments(options = {}) ⇒ Object
get_comments()
description: Retrieve comments on a given post and filter
based on optional inputs.
inputs:
REQUIRED
:post_id - the id of the post to pull comments from.
OPTIONAL
:count - number of commetns to return
:start - comment number to start pulling from
outputs:
Mash of json results from LinkedIn service
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/linked_in/api/comment_methods.rb', line 20 def get_comments(={}) .reverse_merge!({:order => "recency"}) if [:post_id] post_id = .delete(:post_id) else raise ":post_id option required for get_comments method" end path = "/posts/#{post_id}/comments:(text)" simple_query(path, ) end |