public class PeopleService.People
extends java.lang.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.Get |
class |
PeopleService.People.GetBatchGet |
class |
PeopleService.People.UpdateContact |
| Constructor and Description |
|---|
PeopleService.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(java.lang.String resourceName)
Delete a contact person.
|
PeopleService.People.Get |
get(java.lang.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.UpdateContact |
updateContact(java.lang.String resourceName,
Person content)
Update contact data for an existing contact person.
|
public PeopleService.People.CreateContact createContact(Person content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the Personjava.io.IOExceptionpublic PeopleService.People.DeleteContact deleteContact(java.lang.String resourceName) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - The resource name of the contact to delete.java.io.IOExceptionpublic PeopleService.People.Get get(java.lang.String resourceName) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resourceName - 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).java.io.IOExceptionpublic PeopleService.People.GetBatchGet getBatchGet() throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.java.io.IOExceptionpublic PeopleService.People.UpdateContact updateContact(java.lang.String resourceName, Person content) throws java.io.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 Personjava.io.IOExceptionpublic PeopleService.People.Connections connections()
The typical use is:
PeopleService people = new PeopleService(...);PeopleService.Connections.List request = people.connections().list(parameters ...)