Get a specific revision
GET {{baseUrl}}/files/:fileId/revisions/:revisionId?key={{key}}&oauth_token={{oauthToken}}
Gets a revision's metadata or content by ID.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
acknowledgeAbuse | string | Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when alt=media. | |
alt | string | Data format for the response. | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | An opaque string that represents a user for quota purposes. Must not exceed 40 characters. | |
userIp | string | Deprecated. Please use quotaUser instead. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"exportLinks":{"quis_d":"\u003cstring\u003e","in3":"\u003cstring\u003e"},"id":"\u003cstring\u003e","keepForever":"\u003cboolean\u003e","kind":"drive#revision","lastModifyingUser":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"md5Checksum":"\u003cstring\u003e","mimeType":"\u003cstring\u003e","modifiedTime":"\u003cdateTime\u003e","originalFilename":"\u003cstring\u003e","publishAuto":"\u003cboolean\u003e","published":"\u003cboolean\u003e","publishedLink":"\u003cstring\u003e","publishedOutsideDomain":"\u003cboolean\u003e","size":"\u003cint64\u003e"}