Sha256: 850ff91228c2039fd342fe612a3d3fc8c21e77e5d44bd60544b5f7e9f999ede5
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
module Gplus class Client # Get a Comment by its unique ID. # See https://developers.google.com/+/api/latest/comments/get for more details. # # @param [String] id The unique ID of the comment you want to retrieve. # @returb [Hash] A nested hash representation of a {https://developers.google.com/+/api/latest/comments#resource Comment resource}. def get_comment(id) get("comments/#{id}") end # List an activity's comments. # See http://developers.google.com/+/api/latest/comments/list for more details. # # @param [String] activity_id The unique ID of the activity whose comments you want to list. # @option options [Integer] maxResults The number of comments, between 0 and 100, to return. Defaults to 20. # @option options [String] pageToken The page of comments to fetch. Pass the value of :nextPageToken from the previous result set to get the next page of results. # @return [Hash] A nested hash representation of a {http://developers.google.com/+/api/latest/comments/list#response list of comments}. def list_comments(activity_id, options = {}) get("activities/#{activity_id}/comments", options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gplus-1.0.1 | lib/gplus/comment.rb |
gplus-1.0.0 | lib/gplus/comment.rb |