target.apidocs.com.google.api.services.drive.Drive.Changes.html Maven / Gradle / Ivy
Drive.Changes (Google Drive API v3-rev20241027-2.0.0)
com.google.api.services.drive
Class Drive.Changes
- java.lang.Object
-
- com.google.api.services.drive.Drive.Changes
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Drive.Changes.GetStartPageToken
class
Drive.Changes.List
class
Drive.Changes.Watch
-
Constructor Summary
Constructors
Constructor and Description
Changes()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Drive.Changes.GetStartPageToken
getStartPageToken()
Gets the starting pageToken for listing future changes.
Drive.Changes.List
list(String pageToken)
Lists the changes for a user or shared drive.
Drive.Changes.Watch
watch(String pageToken,
Channel content)
Subscribes to changes for a user.
-
-
Method Detail
-
getStartPageToken
public Drive.Changes.GetStartPageToken getStartPageToken()
throws IOException
Gets the starting pageToken for listing future changes.
Create a request for the method "changes.getStartPageToken".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Returns:
- the request
- Throws:
IOException
-
list
public Drive.Changes.List list(String pageToken)
throws IOException
Lists the changes for a user or shared drive.
Create a request for the method "changes.list".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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.
- Returns:
- the request
- Throws:
IOException
-
watch
public Drive.Changes.Watch watch(String pageToken,
Channel content)
throws IOException
Subscribes to changes for a user.
Create a request for the method "changes.watch".
This request holds the parameters needed by the drive server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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.
content
- the Channel
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy