public class PeopleService.People extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
PeopleService.People.Connections
The "connections" collection of methods.
|
class |
PeopleService.People.CreateContact |
class |
PeopleService.People.DeleteContact |
class |
PeopleService.People.DeleteContactPhoto |
class |
PeopleService.People.Get |
class |
PeopleService.People.GetBatchGet |
class |
PeopleService.People.ListDirectoryPeople |
class |
PeopleService.People.SearchDirectoryPeople |
class |
PeopleService.People.UpdateContact |
class |
PeopleService.People.UpdateContactPhoto |
| Constructor and Description |
|---|
People() |
| Modifier and Type | Method and Description |
|---|---|
PeopleService.People.Connections |
connections()
An accessor for creating requests from the Connections collection.
|
PeopleService.People.CreateContact |
createContact(Person content)
Create a new contact and return the person resource for that contact.
|
PeopleService.People.DeleteContact |
deleteContact(String resourceName)
Delete a contact person.
|
PeopleService.People.DeleteContactPhoto |
deleteContactPhoto(String resourceName)
Delete a contact's photo.
|
PeopleService.People.Get |
get(String resourceName)
Provides information about a person by specifying a resource name.
|
PeopleService.People.GetBatchGet |
getBatchGet()
Provides information about a list of specific people by specifying a list of requested resource
names.
|
PeopleService.People.ListDirectoryPeople |
listDirectoryPeople()
Provides a list of domain profiles and domain contacts in the authenticated user's domain
directory.
|
PeopleService.People.SearchDirectoryPeople |
searchDirectoryPeople()
Provides a list of domain profiles and domain contacts in the authenticated user's domain
directory that match the search query.
|
PeopleService.People.UpdateContact |
updateContact(String resourceName,
Person content)
Update contact data for an existing contact person.
|
PeopleService.People.UpdateContactPhoto |
updateContactPhoto(String resourceName,
UpdateContactPhotoRequest content)
Update a contact's photo.
|
public PeopleService.People.CreateContact createContact(Person content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the PersonIOExceptionpublic PeopleService.People.DeleteContact deleteContact(String resourceName) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Required. The resource name of the contact to delete.IOExceptionpublic PeopleService.People.DeleteContactPhoto deleteContactPhoto(String resourceName) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Required. The resource name of the contact whose photo will be deleted.IOExceptionpublic PeopleService.People.Get get(String resourceName) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Required. The resource name of the person to provide information about. - To get information about
the authenticated user, specify `people/me`. - To get information about a google account,
specify `people/{account_id}`. - To get information about a contact, specify the resource
name that identifies the contact as returned by
[`people.connections.list`](/people/api/rest/v1/people.connections/list).IOExceptionpublic PeopleService.People.GetBatchGet getBatchGet() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic PeopleService.People.ListDirectoryPeople listDirectoryPeople() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic PeopleService.People.SearchDirectoryPeople searchDirectoryPeople() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.IOExceptionpublic PeopleService.People.UpdateContact updateContact(String resourceName, Person content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - The resource name for the person, assigned by the server. An ASCII string with a max length of 27
characters, in the form of `people/{person_id}`.content - the PersonIOExceptionpublic PeopleService.People.UpdateContactPhoto updateContactPhoto(String resourceName, UpdateContactPhotoRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - Required. Person resource namecontent - the UpdateContactPhotoRequestIOExceptionpublic PeopleService.People.Connections connections()
The typical use is:
PeopleService people = new PeopleService(...);PeopleService.Connections.List request = people.connections().list(parameters ...)
Copyright © 2011–2020 Google. All rights reserved.