Sha256: fa0570e1ff0379b3ef09bce59e8c4307784ecd6d6233eaec66cdac8d739a796d
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
module Gplus class Client # Get a person's Google+ profile. # See http://developers.google.com/+/api/latest/people/get for more details. # # @param [String] id The unique ID of the person whose profile you want to retrieve. Pass the string 'me' to fetch the profile for the person that the API client is authorized as. # @return [Hash] A nested hash representation of a {http://developers.google.com/+/api/latest/people#resource Person resource} def get_person(id) get("people/#{id}") end # Search all public Google+ profiles. # See https://developers.google.com/+/api/latest/people/search for more details # # @option options [String] query The full text query to search for # @option options [Integer] maxResults The number of profiles, between 1 and 20, to return. Defaults to 10. # @option options [String] pageToken The page of profiles 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/people/search#response search result for people}. def search_people(options = {}) get("people", options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gplus-1.0.1 | lib/gplus/person.rb |
gplus-1.0.0 | lib/gplus/person.rb |