You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<pclass="firstline">Lists a file's revisions. **Important:** The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.</p>
<pre>Lists a file's revisions. **Important:** The list of revisions returned by this method might be incomplete for files with a large revision history, including frequently edited Google Docs, Sheets, and Slides. Older revisions might be omitted from the response, meaning the first revision returned may not be the oldest existing revision. The revision history visible in the Workspace editor user interface might be more complete than the list returned by the API.
fileId: string, Required. The ID of the file the Approval is on. (required)
101
+
approvalId: string, Required. The ID of the Approval. (required)
102
+
x__xgafv: string, V1 error format.
103
+
Allowed values
104
+
1 - v1 error format
105
+
2 - v2 error format
106
+
107
+
Returns:
108
+
An object of the form:
109
+
110
+
{ # Metadata for an approval. An approval is a review/approve process for a Drive item.
111
+
"approvalId": "A String", # The Approval ID.
112
+
"completeTime": "A String", # Output only. The time time the approval was completed.
113
+
"createTime": "A String", # Output only. The time the approval was created.
114
+
"dueTime": "A String", # The time that the approval is due.
115
+
"initiator": { # Information about a Drive user. # The user that requested the Approval.
116
+
"displayName": "A String", # Output only. A plain text displayable name for this user.
117
+
"emailAddress": "A String", # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
118
+
"kind": "drive#user", # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
119
+
"me": True or False, # Output only. Whether this user is the requesting user.
120
+
"permissionId": "A String", # Output only. The user's ID as visible in Permission resources.
121
+
"photoLink": "A String", # Output only. A link to the user's profile photo, if available.
122
+
},
123
+
"kind": "A String", # This is always drive#approval.
124
+
"modifyTime": "A String", # Output only. The most recent time the approval was modified.
125
+
"reviewerResponses": [ # The responses made on the Approval by reviewers.
126
+
{ # A response on an Approval made by a specific Reviewer.
127
+
"kind": "A String", # This is always drive#reviewerResponse.
128
+
"response": "A String", # A Reviewer’s Response for the Approval.
129
+
"reviewer": { # Information about a Drive user. # The user that is responsible for this response.
130
+
"displayName": "A String", # Output only. A plain text displayable name for this user.
131
+
"emailAddress": "A String", # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
132
+
"kind": "drive#user", # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
133
+
"me": True or False, # Output only. Whether this user is the requesting user.
134
+
"permissionId": "A String", # Output only. The user's ID as visible in Permission resources.
135
+
"photoLink": "A String", # Output only. A link to the user's profile photo, if available.
136
+
},
137
+
},
138
+
],
139
+
"status": "A String", # Output only. The status of the approval at the time this resource was requested.
140
+
"targetFileId": "A String", # Target file id of the approval.
fileId: string, Required. The ID of the file the Approval is on. (required)
150
+
pageSize: integer, The maximum number of Approvals to return. When not set, at most 100 Approvals will be returned.
151
+
pageToken: string, The token for continuing a previous list request on the next page. This should be set to the value of nextPageToken from a previous response.
152
+
x__xgafv: string, V1 error format.
153
+
Allowed values
154
+
1 - v1 error format
155
+
2 - v2 error format
156
+
157
+
Returns:
158
+
An object of the form:
159
+
160
+
{ # The response of an Approvals list request.
161
+
"items": [ # The list of Approvals. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.
162
+
{ # Metadata for an approval. An approval is a review/approve process for a Drive item.
163
+
"approvalId": "A String", # The Approval ID.
164
+
"completeTime": "A String", # Output only. The time time the approval was completed.
165
+
"createTime": "A String", # Output only. The time the approval was created.
166
+
"dueTime": "A String", # The time that the approval is due.
167
+
"initiator": { # Information about a Drive user. # The user that requested the Approval.
168
+
"displayName": "A String", # Output only. A plain text displayable name for this user.
169
+
"emailAddress": "A String", # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
170
+
"kind": "drive#user", # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
171
+
"me": True or False, # Output only. Whether this user is the requesting user.
172
+
"permissionId": "A String", # Output only. The user's ID as visible in Permission resources.
173
+
"photoLink": "A String", # Output only. A link to the user's profile photo, if available.
174
+
},
175
+
"kind": "A String", # This is always drive#approval.
176
+
"modifyTime": "A String", # Output only. The most recent time the approval was modified.
177
+
"reviewerResponses": [ # The responses made on the Approval by reviewers.
178
+
{ # A response on an Approval made by a specific Reviewer.
179
+
"kind": "A String", # This is always drive#reviewerResponse.
180
+
"response": "A String", # A Reviewer’s Response for the Approval.
181
+
"reviewer": { # Information about a Drive user. # The user that is responsible for this response.
182
+
"displayName": "A String", # Output only. A plain text displayable name for this user.
183
+
"emailAddress": "A String", # Output only. The email address of the user. This may not be present in certain contexts if the user has not made their email address visible to the requester.
184
+
"kind": "drive#user", # Output only. Identifies what kind of resource this is. Value: the fixed string `drive#user`.
185
+
"me": True or False, # Output only. Whether this user is the requesting user.
186
+
"permissionId": "A String", # Output only. The user's ID as visible in Permission resources.
187
+
"photoLink": "A String", # Output only. A link to the user's profile photo, if available.
188
+
},
189
+
},
190
+
],
191
+
"status": "A String", # Output only. The status of the approval at the time this resource was requested.
192
+
"targetFileId": "A String", # Target file id of the approval.
193
+
},
194
+
],
195
+
"kind": "A String", # This is always drive#approvalList
196
+
"nextPageToken": "A String", # The page token for the next page of Approvals. This will be absent if the end of the Approvals list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
0 commit comments