Documentation

Google_Service_PeopleService_Resource_OtherContacts extends Google_Service_Resource
in package

The "otherContacts" collection of methods.

Typical usage is: $peopleService = new Google_Service_PeopleService(...); $otherContacts = $peopleService->otherContacts;

Table of Contents

$client  : Google_Client
$methods  : array<string|int, mixed>
$resourceName  : string
$rootUrl  : string
$serviceName  : string
$servicePath  : string
$stackParameters  : mixed
__construct()  : mixed
call()  : Google_Http_Request|expectedClass
TODO: This function needs simplifying.
copyOtherContactToMyContactsGroup()  : Google_Service_PeopleService_Person
Copies an "Other contact" to a new contact in the user's "myContacts" group (otherContacts.copyOtherContactToMyContactsGroup)
createRequestUri()  : string
Parse/expand request parameters and create a fully qualified request uri.
listOtherContacts()  : Google_Service_PeopleService_ListOtherContactsResponse
List all "Other contacts", that is contacts that are not in a contact group.
convertToArrayAndStripNulls()  : mixed

Properties

$methods

private array<string|int, mixed> $methods

$resourceName

private string $resourceName

$serviceName

private string $serviceName

$servicePath

private string $servicePath

$stackParameters

private mixed $stackParameters = array('alt' => array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('type' => 'string', 'location' => 'query'))

Methods

__construct()

public __construct(mixed $service, mixed $serviceName, mixed $resourceName, mixed $resource) : mixed
Parameters
$service : mixed
$serviceName : mixed
$resourceName : mixed
$resource : mixed
Return values
mixed

call()

TODO: This function needs simplifying.

public call( $name,  $arguments[,  $expectedClass = null ]) : Google_Http_Request|expectedClass
Parameters
$name :
$arguments :
$expectedClass : = null
  • optional, the expected class name
Tags
throws
Google_Exception
Return values
Google_Http_Request|expectedClass

copyOtherContactToMyContactsGroup()

Copies an "Other contact" to a new contact in the user's "myContacts" group (otherContacts.copyOtherContactToMyContactsGroup)

public copyOtherContactToMyContactsGroup(string $resourceName, Google_Service_PeopleService_CopyOtherContactToMyContactsGroupRequest $postBody[, array<string|int, mixed> $optParams = array() ]) : Google_Service_PeopleService_Person
Parameters
$resourceName : string

Required. The resource name of the "Other contact" to copy.

$postBody : Google_Service_PeopleService_CopyOtherContactToMyContactsGroupRequest
$optParams : array<string|int, mixed> = array()

Optional parameters.

Return values
Google_Service_PeopleService_Person

createRequestUri()

Parse/expand request parameters and create a fully qualified request uri.

public createRequestUri(string $restPath, array<string|int, mixed> $params) : string
Parameters
$restPath : string
$params : array<string|int, mixed>
Tags
static
Return values
string

$requestUrl

listOtherContacts()

List all "Other contacts", that is contacts that are not in a contact group.

public listOtherContacts([array<string|int, mixed> $optParams = array() ]) : Google_Service_PeopleService_ListOtherContactsResponse

"Other contacts" are typically auto created contacts from interactions. (otherContacts.listOtherContacts)

Parameters
$optParams : array<string|int, mixed> = array()

Optional parameters.

Tags
opt_param

bool requestSyncToken Optional. Whether the response should include next_sync_token, which can be used to get all changes since the last request. For subsequent sync requests use the sync_token param instead. Initial sync requests that specify request_sync_token have an additional rate limit.

opt_param

string syncToken Optional. A sync token, received from a previous ListOtherContacts call. Provide this to retrieve only the resources changed since the last request. Sync requests that specify sync_token have an additional rate limit. When syncing, all other parameters provided to ListOtherContacts must match the call that provided the sync token.

opt_param

string readMask Required. A field mask to restrict which fields on each person are returned. Multiple fields can be specified by separating them with commas. Valid values are: * emailAddresses * names * phoneNumbers

opt_param

string pageToken Optional. A page token, received from a previous ListOtherContacts call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListOtherContacts must match the call that provided the page token.

opt_param

int pageSize Optional. The number of "Other contacts" to include in the response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if not set or set to 0.

Return values
Google_Service_PeopleService_ListOtherContactsResponse

convertToArrayAndStripNulls()

protected convertToArrayAndStripNulls(mixed $o) : mixed
Parameters
$o : mixed
Return values
mixed

Search results