-
Notifications
You must be signed in to change notification settings - Fork 25
comments calls
Rashmi Yadav edited this page Oct 26, 2013
·
1 revision
####To call /comments
RubyStackoverflow.comments(options = {})
Example
response = RubyStackoverflow.comments({min: 1, max: 10, sort: 'votes'})
response.data
#=> [#<RubyStackoverflow::Client::Comment:0x007f8861255e90 @comment_id=188189, @post_id=356342, @creation_date="2008-12-10 17:13:59 UTC", @score=10,...]
####To call/comments/{ids} (comments identified in id)
RubyStackoverflow.comments_by_ids(options = {})
Example
response = RubyStackoverflow.comments_by_ids(['129085', '131326'])
response.data
#=> [#<RubyStackoverflow::Client::Comment:0x007f8861255e90 @comment_id=129085, @post_id=356342, @creation_date="2008-12-10 17:13:59 UTC", @score=10,...]