Questo riferimento fornisce tutte le differenze tra le risorse v2 e v3. Per differenze di alto livello tra le due versioni, vedi API Drive v2 e Guida comparativa della versione 3.
Differenze tra i metodi v2 e v3
Questa tabella mostra i metodi della versione 2 che sono cambiati 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/d |
permissions.insert |
permissions.create |
permissions.patch |
permissions.update |
properties.delete |
PRIVATO: files.update con {'appProperties':{'key':null}} PUBBLICO: files.update con {'properties':{'key':null}} |
properties.get |
PRIVATO: files.get con fields='appProperties' PUBBLICO: files.get con fields='properties' |
properties.insert |
PRIVATO: files.update con {'appProperties':{'key':'value'}} PUBBLICO: files.update con {'properties':{'key':'value'}} |
properties.list |
PRIVATO: files.get con fields='appProperties' PUBBLICO: files.get con fields='properties' |
properties.update |
PRIVATO: files.update con {'appProperties':{'key':'value'}} PUBBLICO: files.update con {'properties':{'key':'value'}} |
replies.insert |
replies.create |
replies.patch |
replies.update |
revisions.patch |
revisions.update |
Differenze di parametri tra v2 e v3
La tabella seguente mostra i metodi che sono gli stessi in v2 e v3, ma con parametri diversi.
Metodo | Parametro v2 | Parametro v3 |
---|---|---|
about.get |
includeSubscribed |
n/d |
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/d |
comments.list |
items |
comments |
files.copy |
convert |
Fornisci il valore mimeType di destinazione nel corpo della risorsa |
files.copy |
ocr |
La tecnologia OCR viene attivata automaticamente per le importazioni delle immagini |
files.copy |
pinned |
keepRevisionForever |
files.copy |
timedTextLanguage |
n/d |
files.copy |
timedTextTrackName |
n/d |
files.copy |
visibility=DEFAULT |
ignoreDefaultVisibility=false |
files.copy |
visibility=PRIVATE |
ignoreDefaultVisibility=true |
files.insert |
convert |
Fornisci il valore mimeType di destinazione nel corpo della risorsa |
files.insert |
ocr |
La tecnologia OCR viene attivata automaticamente per le importazioni delle immagini |
files.insert |
pinned |
keepRevisionForever |
files.insert |
timedTextLanguage |
n/d |
files.insert |
timedTextTrackName |
n/d |
files.insert |
visibility=DEFAULT |
ignoreDefaultVisibility=false |
files.insert |
visibility=PRIVATE |
ignoreDefaultVisibility=true |
files.get |
projection |
n/d |
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/d |
files.list |
items |
files |
files.list |
nextLink |
nextPageToken |
files.list |
selfLink |
n/d |
files.update |
modifiedDateBehavior |
La data di modifica viene impostata automaticamente se non viene specificata nel corpo della risorsa. |
files.update |
newRevision |
n/d |
files.update |
ocr |
La tecnologia OCR viene attivata automaticamente per le importazioni delle immagini |
files.update |
pinned |
keepRevisionForever |
files.update |
setModifiedDate |
n/d |
files.update |
timedTextLanguage |
n/d |
files.update |
timedTextTrackName |
n/d |
files.update |
updateViewedDate |
files.update con {'viewedByMeTime':'timestamp'} |
permissions.insert |
sendNotificationEmails |
sendNotificationEmail |
permissions.list |
etag |
n/d |
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/d |
Differenze nei campi delle risorse v2 e v3
Questa tabella mostra i campi delle risorse che sono cambiati dalla versione 2 alla versione 3.
Risorsa | v2 Field |
v3 Field |
---|---|---|
About |
additionalRoleInfo |
n/d |
About |
domainSharingPolicy |
n/d |
About |
etag |
n/d |
About |
features |
n/d |
About |
languageCode |
n/d |
About |
largestChangeId |
changes.getStartPageToken |
About |
maxUploadSizes |
maxImportSizes e maxUploadSize |
About |
name |
user.displayName |
About |
permissionId |
user.permissionId |
About |
quotaBytesByService |
n/d |
About |
quotaType |
Indicato dalla presenza o dall'assenza di storageQuota.limit |
About |
remainingChangeIds |
n/d |
About |
rootFolderId |
files.get con fileId=root e ?fields=id |
About |
selfLink |
n/d |
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/d |
Comments |
fileTitle |
files.get con ?fields=name |
Comments |
modifiedDate |
modifiedTime |
Comments |
selfLink |
n/d |
Comments |
status |
resolved |
Files |
alternateLink |
webViewLink |
Files |
appDataContents |
spaces |
Files |
copyable |
capabilities.canCopy |
Files |
createdDate |
createdTime |
Files |
defaultOpenWithLink |
n/d |
Files |
downloadUrl |
files.get con ?alt=media |
Files |
editable |
capabilities.canEdit |
Files |
embedLink |
n/d |
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/d |
Files |
sharedWithMeDate |
sharedWithMeTime |
Files |
thumbnail.image |
contentHints.thumbnail.image |
Files |
thumbnail.mimeType |
contentHints.thumbnail.mimeType |
Files |
title |
name |
Files |
userPermission |
ownedByMe , capabilities.canEdit e capabilities.canComment |
Files |
webViewLink |
n/d |
Permissions |
additionalRoles |
role |
Permissions |
authKey |
n/d |
Permissions |
etag |
n/d |
Permissions |
name |
displayName |
Permissions |
selfLink |
n/d |
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/d |
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 |