class Changes extends Resource (View source)

The "changes" collection of methods.

Typical usage is:

 $driveService = new Google\Service\Drive(...);
 $changes = $driveService->changes;

Methods

getStartPageToken(array $optParams = [])

Gets the starting pageToken for listing future changes.

listChanges(string $pageToken, array $optParams = [])

Lists the changes for a user or shared drive. (changes.listChanges)

watch(string $pageToken, Channel $postBody, array $optParams = [])

Subscribes to changes for a user. (changes.watch)

Details

StartPageToken getStartPageToken(array $optParams = [])

Gets the starting pageToken for listing future changes.

(changes.getStartPageToken)

Parameters

array $optParams

Optional parameters.

Return Value

StartPageToken

Exceptions

Exception

ChangeList listChanges(string $pageToken, array $optParams = [])

Lists the changes for a user or shared drive. (changes.listChanges)

Parameters

string $pageToken

The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.

array $optParams

Optional parameters.

Return Value

ChangeList

Exceptions

Exception

Channel watch(string $pageToken, Channel $postBody, array $optParams = [])

Subscribes to changes for a user. (changes.watch)

Parameters

string $pageToken

The token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response or to the response from the getStartPageToken method.

Channel $postBody
array $optParams

Optional parameters.

Return Value

Channel

Exceptions

Exception