Class: Google::Apis::PeopleV1::PeopleServiceService
- Inherits:
-
Core::BaseService
- Object
- Core::BaseService
- Google::Apis::PeopleV1::PeopleServiceService
- Defined in:
- generated/google/apis/people_v1/service.rb
Overview
Google People API
Provides access to information about profiles and contacts.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Attributes inherited from Core::BaseService
#authorization, #base_path, #batch_path, #client, #client_options, #request_options, #root_url, #upload_path
Instance Method Summary collapse
-
#get_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PeopleV1::GetPeopleResponse
Provides information about a list of specific people by specifying a list of requested resource names.
-
#get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PeopleV1::Person
Provides information about a person by specifying a resource name.
-
#initialize ⇒ PeopleServiceService
constructor
A new instance of PeopleServiceService.
-
#list_person_connections(resource_name, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, sync_token: nil, sort_order: nil, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PeopleV1::ListConnectionsResponse
Provides a list of the authenticated user's contacts merged with any linked profiles.
Methods inherited from Core::BaseService
#batch, #batch_upload, #fetch_all, #http
Methods included from Core::Logging
Constructor Details
#initialize ⇒ PeopleServiceService
Returns a new instance of PeopleServiceService
45 46 47 48 |
# File 'generated/google/apis/people_v1/service.rb', line 45 def initialize super('https://people.googleapis.com/', '') @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
43 44 45 |
# File 'generated/google/apis/people_v1/service.rb', line 43 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
38 39 40 |
# File 'generated/google/apis/people_v1/service.rb', line 38 def quota_user @quota_user end |
Instance Method Details
#get_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PeopleV1::GetPeopleResponse
Provides information about a list of specific people by specifying a list
of requested resource names. Use people/me
to indicate the authenticated
user.
79 80 81 82 83 84 85 86 87 88 |
# File 'generated/google/apis/people_v1/service.rb', line 79 def get_people(request_mask_include_field: nil, resource_names: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/people:batchGet', ) command.response_representation = Google::Apis::PeopleV1::GetPeopleResponse::Representation command.response_class = Google::Apis::PeopleV1::GetPeopleResponse command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? command.query['resourceNames'] = resource_names unless resource_names.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end |
#get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PeopleV1::Person
Provides information about a person by specifying a resource name. Use
people/me
to indicate the authenticated user.
119 120 121 122 123 124 125 126 127 128 |
# File 'generated/google/apis/people_v1/service.rb', line 119 def get_person(resource_name, request_mask_include_field: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resourceName}', ) command.response_representation = Google::Apis::PeopleV1::Person::Representation command.response_class = Google::Apis::PeopleV1::Person command.params['resourceName'] = resource_name unless resource_name.nil? command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end |
#list_person_connections(resource_name, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, sync_token: nil, sort_order: nil, quota_user: nil, fields: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::PeopleV1::ListConnectionsResponse
Provides a list of the authenticated user's contacts merged with any linked profiles.
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'generated/google/apis/people_v1/service.rb', line 169 def list_person_connections(resource_name, request_sync_token: nil, page_token: nil, page_size: nil, request_mask_include_field: nil, sync_token: nil, sort_order: nil, quota_user: nil, fields: nil, options: nil, &block) command = make_simple_command(:get, 'v1/{+resourceName}/connections', ) command.response_representation = Google::Apis::PeopleV1::ListConnectionsResponse::Representation command.response_class = Google::Apis::PeopleV1::ListConnectionsResponse command.params['resourceName'] = resource_name unless resource_name.nil? command.query['requestSyncToken'] = request_sync_token unless request_sync_token.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['pageSize'] = page_size unless page_size.nil? command.query['requestMask.includeField'] = request_mask_include_field unless request_mask_include_field.nil? command.query['syncToken'] = sync_token unless sync_token.nil? command.query['sortOrder'] = sort_order unless sort_order.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? command.query['fields'] = fields unless fields.nil? execute_or_queue_command(command, &block) end |