Google Drive API 버전 2를 사용하는 경우 Google Drive API 가이드 v3의 대부분의 콘텐츠가 v2에도 적용됩니다. 이 섹션에는 v2에만 해당하고 v3 가이드의 특정 페이지에 표시된 내용과 다른 모든 정보가 포함되어 있습니다. 전체 맥락을 파악할 수 있도록 각 하위 섹션에는 해당 가이드 페이지로 연결되는 링크가 포함되어 있습니다.
파일의 버전 목록을 가져온 후 승인된 GET 요청을 []downloadUrl](/workspace/drive/api/reference/rest/v2/revisions) 속성에 전송하여 버전의 콘텐츠를 다운로드할 수 있습니다.
수정을 요청하면 Google Drive에서 이 단기 URL을 생성합니다.
나중에 사용할 수 있다고 생각하지 마세요.
exportLinks 속성을 확인하여 지원되는 형식 중 하나로 버전을 내보낼 수도 있습니다.
Google Drive에서 파일을 만들 때 일부 유형의 파일을 Google Docs, Google Sheets 또는 Google Slides 문서로 변환할 수 있습니다. files.insertconvert 쿼리 매개변수를 포함하고 파일의 (workspace_name) mimeType 속성을 설정합니다. 자세한 내용은 파일 데이터 업로드를 참고하세요.
파일, 폴더, 드라이브 공유하기
파일, 폴더, 드라이브 공유하기 페이지에서 v3에는 사용자, 그룹 또는 도메인의 유효한 역할을 지정하는 필드 role만 있습니다. v2에서는 권한의 role 및 additionalRoles 필드가 사용자, 그룹 또는 도메인이 특정 항목에 대해 갖는 유효한 역할을 반영해야 합니다.
v2의 검색어 차이점
v2 title 필드는 v3에서 name입니다. 예를 보려면 파일 및 폴더 검색을 참고하세요.
v2 createdDate 필드는 v3에서 createdTime입니다. 예시는 공유 드라이브 검색을 참고하세요.
v2 modifiedDate 필드는 v3에서 modifiedTime입니다. v2 lastViewedByMeDate 필드는 v3에서 viewedByMeTime입니다. 자세한 내용은 검색어 및 연산자를 참고하세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-08-29(UTC)"],[],[],null,["# Guide to Drive API v2\n\nIf you use Google Drive API version 2, most of the content in the [Google Drive API\nGuide](/workspace/drive/api/guides/about-sdk) v3 pertains to v2 as well. This section\ncontains all of the information that's v2-specific, and different from what's\nshown in specific pages of the v3 guide. To get full context, each sub-section\ncontains the link to the corresponding guide page.\n\nFor a complete list of differences, see [Drive API v2 \\& v3 comparison\nreference](/workspace/drive/api/guides/v2-to-v3-reference).\n\nDownload \\& publish file revisions\n----------------------------------\n\nOn the [Download \\& publish file revisions](/workspace/drive/api/guides/manage-revisions)\npage, the following information is specific to v2, and replaces these sections\nshown for v3:\n\n### List \\& download individual revisions\n\nOnce you get a list of a file's revisions, you can download the content of any\nrevision by sending an authorized `GET` request to its\n\\[\\]`downloadUrl`\\](/workspace/drive/api/reference/rest/v2/revisions) property.\nGoogle Drive generates this short-lived URL when you request the revision.\nDon't rely on it for later use.\n\nYou can also export the revision in one of the supported formats by checking the\n`exportLinks` property.\n\nCustom file properties\n----------------------\n\nIn addition to the information on the [Add custom file properties](/drive/api/guides/properties) page, the following information is specific to v2:\n\nProperties are accessed using the\n[`properties`](/workspace/drive/api/reference/rest/v2/properties) resource.\n\nThis is the structure of a typical property that might be used to store a\nDrive file's database ID on the file. \n\n {\n 'key': 'additionalID',\n 'value': '\u003cvar translate=\"no\"\u003eID\u003c/var\u003e',\n 'visibility': 'PRIVATE'\n }\n\nFor more information about limits, see\n[`properties`](/workspace/drive/api/reference/rest/v2/properties) in the\nreference documentation.\n\nEnable shared drive support\n---------------------------\n\nIn addition to the information on the [Implement shared drive support](/workspace/drive/api/guides/enable-shareddrives) page, replace this additional field\n[`trashedDate`](/workspace/drive/api/v2/reference/files) for v2.\n\nIn [Implement shared drive support](/workspace/drive/api/guides/enable-shareddrives), the\nfollowing methods require `supportsAllDrives=true` when working with shared\ndrives content:\n\n- `files.get`\n- `files.list`\n- `files.insert`\n- `files.update`\n- `files.patch`\n- `files.copy`\n- `files.trash`\n- `files.untrash`\n- `files.delete`\n- `files.touch`\n- `children.insert`\n- `parents.insert`\n- `changes.list`\n- `changes.getStartPageToken`\n- `changes.get`\n- `permissions.list`\n- `permissions.get`\n- `permissions.insert`\n- `permissions.update`\n- `permissions.patch`\n- `permissions.delete`\n\nThe `changes.get` and `changes.list` methods have several parameters specific to\nshared drives. For a list of parameters, see [Track changes on a shared\ndrive](/workspace/drive/api/guides/enable-shareddrives#track_changes_on_a_shared_drive)\nsection.\n\nUpload files\n------------\n\nOn the [Upload file data](/workspace/drive/api/guides/manage-uploads) page, notice this\ninformation is specific to v2:\n\n### Import to Google Docs types\n\nWhen you create a file in Google Drive, you can convert some types file into a\nGoogle Docs, Google Sheets, or Google Slides document. Include the\n[`files.insert`](/workspace/drive/api/reference/rest/v2/files/insert) `convert` query\nparameters and set the (workspace_name) `mimeType` property of the file. For\nmore information, see [Upload file\ndata](/workspace/drive/api/guides/manage-uploads#import-docs).\n\nShare files, folders \\& drives\n------------------------------\n\nNotice on the [Share files, folders \\& drives](/workspace/drive/api/guides/manage-sharing)\npage, in v3 only one field, `role`, specifies effective roles for user, group,\nor domain. In v2, you need both `role` and `additionalRoles` fields of a\npermission reflect the effective roles the user, group, or domain have for a\ngiven item.\n\nSearch query differences for v2\n-------------------------------\n\nThe v2 `title` field is `name` in v3. For examples, see [Search for files \\&\nfolders](/workspace/drive/api/guides/search-files).\n\nThe v2 `createdDate` field is `createdTime` in v3. For examples, see [Search for\nshared drives](/workspace/drive/api/guides/search-shareddrives).\n\nThe v2 `modifiedDate` field is `modifiedTime` in v3. The v2 `lastViewedByMeDate`\nfield is `viewedByMeTime` in v3. For more details, see [Search query terms \\&\noperators](/workspace/drive/api/guides/ref-search-terms)."]]