Module: Gplus::Person
- Included in:
- Client
- Defined in:
- lib/gplus/person.rb
Overview
A collection of methods for Google+ People API calls.
Instance Method Summary (collapse)
-
- (Hash) get_person(id)
Get a person's Google+ profile.
-
- (Hash) list_people_by_activity(activity_id, collection, options = {})
List all of the people in the specified collection for a particular activity.
-
- (Hash) search_people(query, options = {})
Search all public Google+ profiles.
Instance Method Details
- (Hash) get_person(id)
Get a person's Google+ profile. @ developers.google.com/+/api/latest/people/get The Google+ 'People: get' documentation.
10 11 12 |
# File 'lib/gplus/person.rb', line 10 def get_person(id) get("people/#{id}") end |
- (Hash) list_people_by_activity(activity_id, collection, options = {})
List all of the people in the specified collection for a particular activity.
36 37 38 |
# File 'lib/gplus/person.rb', line 36 def list_people_by_activity(activity_id, collection, = {}) get("activities/#{activity_id}/people/#{collection}", ) end |
- (Hash) search_people(query, options = {})
Search all public Google+ profiles.
23 24 25 |
# File 'lib/gplus/person.rb', line 23 def search_people(query, = {}) get("people", .merge(:query => query)) end |