Questo riferimento fornisce tutte le differenze tra le risorse della versione 2 e della versione 3. Per le differenze di alto livello tra le due versioni, consulta la guida al confronto tra le API Drive v2 e v3.
Differenze tra i metodi v2 e v3
Questa tabella mostra i metodi della versione 2 che sono stati modificati nella versione 3.
Metodo v2 | Metodo v3 |
---|---|
children.delete |
files.update sul bambino con ?removeParents=parent_id |
children.get |
files.list con ?q='parent_id'+in+parents |
children.insert |
files.update sul bambino con ?addParents=parent_id |
children.list |
files.list con ?q='parent_id'+in+parents |
comments.insert |
comments.create |
comments.patch |
comments.update |
files.insert |
files.create |
files.patch |
files.update |
files.touch |
files.update con {'modifiedTime':'timestamp'} |
files.trash |
files.update con {'trashed':true} |
files.untrash |
files.update con {'trashed':false} |
parents.delete |
files.update con ?removeParents=parent_id |
parents.get |
files.get con ?fields=parents |
parents.insert |
files.update con ?addParents=parent_id |
parents.list |
files.get con ?fields=parents |
permissions.getIdForEmail |
n/a |
permissions.insert |
permissions.create |
permissions.patch |
permissions.update |
properties.delete |
PRIVATO: files.update con {'appProperties':{'key':null}} PUBBLICA: files.update con {'properties':{'key':null}} |
properties.get |
PRIVATO: files.get con fields='appProperties' PUBBLICA: files.get con fields='properties' |
properties.insert |
PRIVATO: files.update con {'appProperties':{'key':'value'}} PUBBLICA: files.update con {'properties':{'key':'value'}} |
properties.list |
PRIVATO: files.get con fields='appProperties' PUBBLICA: files.get con fields='properties' |
properties.update |
PRIVATO: files.update con {'appProperties':{'key':'value'}} PUBBLICA: files.update con {'properties':{'key':'value'}} |
replies.insert |
replies.create |
replies.patch |
replies.update |
revisions.patch |
revisions.update |
Differenze nei parametri tra la versione 2 e la versione 3
La tabella seguente mostra i metodi che sono uguali nella versione 2 e nella versione 3, ma che accettano parametri diversi.
Metodo | Parametro v2 | Parametro v3 |
---|---|---|
about.get |
includeSubscribed |
n/a |
about.get |
maxChangeIdCount |
n/d |
about.get |
startChangeId |
n/d |
changes.list |
includeDeleted |
includeRemoved |
changes.list |
includeSubscribed=true |
restrictToMyDrive=false |
changes.list |
includeSubscribed=false |
restrictToMyDrive=true |
changes.list |
maxResults |
pageSize |
changes.list |
startChangeId |
pageToken |
changes.list |
etag |
n/d |
changes.list |
items |
changes |
changes.list |
largestChangeId |
newStartPageToken |
changes.list |
nextLink |
nextPageToken |
changes.list |
selfLink |
n/d |
comments.list |
maxResults |
pageSize |
comments.list |
updatedMin |
startModifiedTime |
comments.list |
nextLink |
nextPageToken |
comments.list |
selfLink |
n/a |
comments.list |
items |
comments |
files.copy |
convert |
Fornisci il target mimeType nel corpo della risorsa |
files.copy |
ocr |
L'OCR viene attivato automaticamente per le importazioni di immagini |
files.copy |
pinned |
keepRevisionForever |
files.copy |
timedTextLanguage |
n/a |
files.copy |
timedTextTrackName |
n/a |
files.copy |
visibility=DEFAULT |
ignoreDefaultVisibility=false |
files.copy |
visibility=PRIVATE |
ignoreDefaultVisibility=true |
files.insert |
convert |
Fornisci il target mimeType nel corpo della risorsa |
files.insert |
ocr |
L'OCR viene attivato automaticamente per le importazioni di immagini |
files.insert |
pinned |
keepRevisionForever |
files.insert |
timedTextLanguage |
n/a |
files.insert |
timedTextTrackName |
n/d |
files.insert |
visibility=DEFAULT |
ignoreDefaultVisibility=false |
files.insert |
visibility=PRIVATE |
ignoreDefaultVisibility=true |
files.get |
projection |
n/a |
files.get |
revisionId |
revisions.get |
files.get |
updateViewedDate |
files.update con {'viewedByMeTime':'timestamp'} |
files.generateIds |
maxResults |
count |
files.list |
corpora=default |
corpus=user |
files.list |
corpora=domain |
corpus=domain |
files.list |
maxResults |
pageSize |
files.list |
etag |
n/a |
files.list |
items |
files |
files.list |
nextLink |
nextPageToken |
files.list |
selfLink |
n/a |
files.update |
modifiedDateBehavior |
La data di modifica viene impostata automaticamente se non è fornita nel corpo della risorsa. |
files.update |
newRevision |
n/a |
files.update |
ocr |
L'OCR viene attivato automaticamente per le importazioni di immagini |
files.update |
pinned |
keepRevisionForever |
files.update |
setModifiedDate |
n/a |
files.update |
timedTextLanguage |
n/d |
files.update |
timedTextTrackName |
n/a |
files.update |
updateViewedDate |
files.update con {'viewedByMeTime':'timestamp'} |
permissions.insert |
sendNotificationEmails |
sendNotificationEmail |
permissions.list |
etag |
n/a |
permissions.list |
items |
permissions |
permissions.list |
selfLink |
n/d |
replies.list |
maxResults |
pageSize |
replies.list |
items |
replies |
replies.list |
nextLink |
nextPageToken |
replies.list |
selfLink |
n/d |
revisions.list |
etag |
n/d |
revisions.list |
items |
revisions |
revisions.list |
selfLink |
n/a |
Differenze tra i campi delle risorse nella versione 2 e nella versione 3
Questa tabella mostra i campi delle risorse che sono stati modificati dalla versione 2 alla versione 3.
Risorsa | v2 Field |
v3 Field |
---|---|---|
About |
additionalRoleInfo |
n/a |
About |
domainSharingPolicy |
n/d |
About |
etag |
n/d |
About |
features |
n/d |
About |
languageCode |
n/a |
About |
largestChangeId |
changes.getStartPageToken |
About |
maxUploadSizes |
maxImportSizes e maxUploadSize |
About |
name |
user.displayName |
About |
permissionId |
user.permissionId |
About |
quotaBytesByService |
n/a |
About |
quotaType |
Indicata dalla presenza o dall'assenza di storageQuota.limit |
About |
remainingChangeIds |
n/a |
About |
rootFolderId |
files.get con fileId=root e ?fields=id |
About |
selfLink |
n/a |
About |
isCurrentAppInstalled |
appInstalled |
About |
quotaBytesTotal |
storageQuota.limit |
About |
quotaBytesUsed |
storageQuota.usageInDrive |
About |
quotaBytesUsedAggregate |
storageQuota.usage |
About |
quotaBytesUsedInTrash |
storageQuota.usageInDriveTrash |
Apps |
etag |
n/d |
Changes |
deleted |
removed |
Changes |
id |
n/d |
Changes |
selfLink |
n/d |
Changes |
modificationDate |
time |
Comments |
context.type |
quotedFileContent.mimeType |
Comments |
context.value |
quotedFileContent.value |
Comments |
createdDate |
createdTime |
Comments |
fileId |
n/a |
Comments |
fileTitle |
files.get con ?fields=name |
Comments |
modifiedDate |
modifiedTime |
Comments |
selfLink |
n/a |
Comments |
status |
resolved |
Files |
alternateLink |
webViewLink |
Files |
appDataContents |
spaces |
Files |
copyable |
capabilities.canCopy |
Files |
createdDate |
createdTime |
Files |
defaultOpenWithLink |
n/a |
Files |
downloadUrl |
files.get con ?alt=media |
Files |
editable |
capabilities.canEdit |
Files |
embedLink |
n/a |
Files |
etag |
n/d |
Files |
fileSize |
size |
Files |
imageMediaMetadata.date |
imageMediaMetadata.time |
Files |
indexableText.text |
contentHints.indexableText |
Files |
copyRequiresWriterPermission |
viewersCanCopyContent |
Files |
labels.starred |
starred |
Files |
labels.trashed |
trashed |
Files |
labels.viewed |
viewedByMe |
Files |
lastModifyingUserName |
lastModifyingUser.displayName |
Files |
lastViewedByMeDate |
viewedByMeTime |
Files |
modifiedByMeDate |
modifiedByMeTime |
Files |
modifiedDate |
modifiedTime |
Files |
openWithLinks |
n/d |
Files |
ownerNames |
owners.displayName |
Files |
selfLink |
n/a |
Files |
sharedWithMeDate |
sharedWithMeTime |
Files |
thumbnail.image |
contentHints.thumbnail.image |
Files |
thumbnail.mimeType |
contentHints.thumbnail.mimeType |
Files |
title |
name |
Files |
userPermission |
ownedByMe , capabilities.canEdit , capabilities.canComment |
Files |
webViewLink |
n/a |
Permissions |
additionalRoles |
role |
Permissions |
authKey |
n/d |
Permissions |
etag |
n/d |
Permissions |
name |
displayName |
Permissions |
selfLink |
n/a |
Permissions |
value |
emailAddress o domain |
Permissions |
withLink=true |
allowFileDiscovery=false |
Permissions |
withLink=false |
allowFileDiscovery=true |
Replies |
createdDate |
createdTime |
Replies |
modifiedDate |
modifiedTime |
Replies |
replyId |
id |
Replies |
verb |
action |
Revisions |
downloadUrl |
revisions.get con ?alt=media |
Revisions |
etag |
n/a |
Revisions |
fileSize |
size |
Revisions |
lastModifyingUserName |
lastModifyingUser.displayName |
Revisions |
modifiedDate |
modifiedTime |
Revisions |
pinned |
keepForever |
Revisions |
publishedLink |
n/d |
Revisions |
selfLink |
n/d |
Revisions |
isAuthenticatedUser |
me |
Revisions |
lastModifyingUser.picture.url |
photoLink |