blob: c470345109b0825e4300a6c4bfc78b4948ca7194 [file] [log] [blame]
Joe Gregorio075572b2012-07-09 16:53:09 -04001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="drive_v2.html">Drive API</a> . <a href="drive_v2.changes.html">changes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#get">get(changeId)</a></code></p>
79<p class="firstline">Gets a specific change.</p>
80<p class="toc_element">
81 <code><a href="#list">list(includeSubscribed=None, includeDeleted=None, pageToken=None, maxResults=None, startChangeId=None)</a></code></p>
82<p class="firstline">Lists the changes for a user.</p>
83<p class="toc_element">
84 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<h3>Method Details</h3>
87<div class="method">
88 <code class="details" id="get">get(changeId)</code>
89 <pre>Gets a specific change.
90
91Args:
92 changeId: string, The ID of the change. (required)
93
94Returns:
95 An object of the form:
96
97 { # Representation of a change to a file.
98 "kind": "drive#change", # This is always drive#change.
99 "deleted": True or False, # Whether the file has been deleted.
100 "file": { # The metadata for a file. # The updated state of the file. Present if the file has not been deleted.
101 "mimeType": "A String", # The MIME type of the file.
102 "thumbnailLink": "A String", # A link to the file's thumbnail.
103 "labels": { # A group of labels for the file.
104 "restricted": True or False, # Whether viewers are prevented from downloading this file.
105 "hidden": True or False, # Whether this file is hidden from the user.
106 "viewed": True or False, # Whether this file has been viewed by this user.
107 "starred": True or False, # Whether this file is starred by the user.
108 "trashed": True or False, # Whether this file has been trashed.
109 },
110 "indexableText": { # Indexable text attributes for the file (can only be written)
111 "text": "A String", # The text to be indexed for this file
112 },
113 "etag": "A String", # ETag of the file.
114 "lastModifyingUserName": "A String", # Name of the last user to modify this file. This will only be populated if a user has edited this file.
115 "writersCanShare": True or False, # Whether writers can share the document with other users.
116 "id": "A String", # The id of the file.
117 "title": "A String", # The title of this file.
118 "ownerNames": [ # Name(s) of the owner(s) of this file.
119 "A String",
120 ],
121 "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
122 "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
123 "parents": [ # Collection of parent folders which contain this file.
Joe Gregorioe7a0c472012-07-12 11:46:04 -0400124 # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
Joe Gregorio075572b2012-07-09 16:53:09 -0400125 { # A reference to a file's parent.
126 "selfLink": "A String", # A link back to this reference.
127 "kind": "drive#parentReference", # This is always drive#parentReference.
128 "id": "A String", # The ID of the parent.
129 "isRoot": True or False, # Whether or not the parent is the root folder.
130 "parentLink": "A String", # A link to the parent.
131 },
132 ],
133 "exportLinks": { # Links for exporting Google Docs to specific formats.
Joe Gregoriofa08c2e2012-07-23 16:52:03 -0400134 "a_key": "A String", # A mapping from export format to URL
Joe Gregorio075572b2012-07-09 16:53:09 -0400135 },
136 "originalFilename": "A String", # The filename when uploading this file. This will only be populated on files with content stored in Drive.
137 "description": "A String", # A short description of the file.
138 "editable": True or False, # Whether the file can be edited by the current user.
139 "kind": "drive#file", # The type of file. This is always drive#file.
140 "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
141 "fileSize": "A String", # The size of the file in bytes. This will only be populated on files with content stored in Drive.
142 "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
143 "md5Checksum": "A String", # An MD5 checksum for the content of this file. This will only be populated on files with content stored in Drive.
144 "embedLink": "A String", # A link for embedding the file.
145 "alternateLink": "A String", # A link for opening the file in a browser.
146 "permissionsLink": "A String", # A link to the permissions collection.
147 "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp).
148 "downloadUrl": "A String", # Short term download URL for the file. This will only be populated on files with content stored in Drive.
149 "userPermission": { # A single permission for a file. # The permissions for the authenticated user on this file.
150 "withLink": True or False, # Whether the link is required for this permission.
151 "kind": "drive#permission", # This is always drive#permission.
152 "name": "A String", # The name for this permission.
153 "value": "A String", # The email address or domain name for the entity. This is not populated in responses.
154 "id": "A String", # The ID of the permission.
155 "authKey": "A String", # The authkey parameter required for this permission.
156 "etag": "A String", # The ETag of the permission.
157 "role": "A String", # The primary role for this user. Allowed values are:
158 # - owner
159 # - reader
160 # - writer
161 "photoLink": "A String", # A link to the profile photo, if available.
162 "type": "A String", # The account type. Allowed values are:
163 # - user
164 # - group
165 # - domain
166 # - anyone
167 "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
168 "A String",
169 ],
170 "selfLink": "A String", # A link back to this permission.
171 },
172 "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it on title when creating the file. This will only be populated on files with content stored in Drive.
173 "selfLink": "A String", # A link back to this file.
174 "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp).
175 },
176 "id": "A String", # The ID of the change.
177 "selfLink": "A String", # A link back to this change.
178 "fileId": "A String", # The ID of the file associated with this change.
179 }</pre>
180</div>
181
182<div class="method">
183 <code class="details" id="list">list(includeSubscribed=None, includeDeleted=None, pageToken=None, maxResults=None, startChangeId=None)</code>
184 <pre>Lists the changes for a user.
185
186Args:
187 includeSubscribed: boolean, Whether to include subscribed items.
188 includeDeleted: boolean, Whether to include deleted items.
189 pageToken: string, Page token for changes.
190 maxResults: integer, Maximum number of changes to return.
191 startChangeId: string, Change ID to start listing changes from.
192
193Returns:
194 An object of the form:
195
196 { # A list of changes for a user.
197 "nextPageToken": "A String", # The page token for the next page of changes.
198 "kind": "drive#changeList", # This is always drive#changeList.
199 "items": [ # The actual list of changes.
200 { # Representation of a change to a file.
201 "kind": "drive#change", # This is always drive#change.
202 "deleted": True or False, # Whether the file has been deleted.
203 "file": { # The metadata for a file. # The updated state of the file. Present if the file has not been deleted.
204 "mimeType": "A String", # The MIME type of the file.
205 "thumbnailLink": "A String", # A link to the file's thumbnail.
206 "labels": { # A group of labels for the file.
207 "restricted": True or False, # Whether viewers are prevented from downloading this file.
208 "hidden": True or False, # Whether this file is hidden from the user.
209 "viewed": True or False, # Whether this file has been viewed by this user.
210 "starred": True or False, # Whether this file is starred by the user.
211 "trashed": True or False, # Whether this file has been trashed.
212 },
213 "indexableText": { # Indexable text attributes for the file (can only be written)
214 "text": "A String", # The text to be indexed for this file
215 },
216 "etag": "A String", # ETag of the file.
217 "lastModifyingUserName": "A String", # Name of the last user to modify this file. This will only be populated if a user has edited this file.
218 "writersCanShare": True or False, # Whether writers can share the document with other users.
219 "id": "A String", # The id of the file.
220 "title": "A String", # The title of this file.
221 "ownerNames": [ # Name(s) of the owner(s) of this file.
222 "A String",
223 ],
224 "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
225 "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
226 "parents": [ # Collection of parent folders which contain this file.
Joe Gregorioe7a0c472012-07-12 11:46:04 -0400227 # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
Joe Gregorio075572b2012-07-09 16:53:09 -0400228 { # A reference to a file's parent.
229 "selfLink": "A String", # A link back to this reference.
230 "kind": "drive#parentReference", # This is always drive#parentReference.
231 "id": "A String", # The ID of the parent.
232 "isRoot": True or False, # Whether or not the parent is the root folder.
233 "parentLink": "A String", # A link to the parent.
234 },
235 ],
236 "exportLinks": { # Links for exporting Google Docs to specific formats.
Joe Gregoriofa08c2e2012-07-23 16:52:03 -0400237 "a_key": "A String", # A mapping from export format to URL
Joe Gregorio075572b2012-07-09 16:53:09 -0400238 },
239 "originalFilename": "A String", # The filename when uploading this file. This will only be populated on files with content stored in Drive.
240 "description": "A String", # A short description of the file.
241 "editable": True or False, # Whether the file can be edited by the current user.
242 "kind": "drive#file", # The type of file. This is always drive#file.
243 "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
244 "fileSize": "A String", # The size of the file in bytes. This will only be populated on files with content stored in Drive.
245 "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
246 "md5Checksum": "A String", # An MD5 checksum for the content of this file. This will only be populated on files with content stored in Drive.
247 "embedLink": "A String", # A link for embedding the file.
248 "alternateLink": "A String", # A link for opening the file in a browser.
249 "permissionsLink": "A String", # A link to the permissions collection.
250 "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp).
251 "downloadUrl": "A String", # Short term download URL for the file. This will only be populated on files with content stored in Drive.
252 "userPermission": { # A single permission for a file. # The permissions for the authenticated user on this file.
253 "withLink": True or False, # Whether the link is required for this permission.
254 "kind": "drive#permission", # This is always drive#permission.
255 "name": "A String", # The name for this permission.
256 "value": "A String", # The email address or domain name for the entity. This is not populated in responses.
257 "id": "A String", # The ID of the permission.
258 "authKey": "A String", # The authkey parameter required for this permission.
259 "etag": "A String", # The ETag of the permission.
260 "role": "A String", # The primary role for this user. Allowed values are:
261 # - owner
262 # - reader
263 # - writer
264 "photoLink": "A String", # A link to the profile photo, if available.
265 "type": "A String", # The account type. Allowed values are:
266 # - user
267 # - group
268 # - domain
269 # - anyone
270 "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
271 "A String",
272 ],
273 "selfLink": "A String", # A link back to this permission.
274 },
275 "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it on title when creating the file. This will only be populated on files with content stored in Drive.
276 "selfLink": "A String", # A link back to this file.
277 "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp).
278 },
279 "id": "A String", # The ID of the change.
280 "selfLink": "A String", # A link back to this change.
281 "fileId": "A String", # The ID of the file associated with this change.
282 },
283 ],
284 "nextLink": "A String", # A link to the next page of changes.
285 "etag": "A String", # The ETag of the list.
286 "largestChangeId": "A String", # The current largest change ID.
287 "selfLink": "A String", # A link back to this list.
288 }</pre>
289</div>
290
291<div class="method">
292 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
293 <pre>Retrieves the next page of results.
294
295Args:
296 previous_request: The request for the previous page. (required)
297 previous_response: The response from the request for the previous page. (required)
298
299Returns:
300 A request object that you can call 'execute()' on to request the next
301 page. Returns None if there are no more items in the collection.
302 </pre>
303</div>
304
305</body></html>