Drive API v3로 이전
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
현재 Drive API v2를 사용하고 있다면 v3로 마이그레이션할 수 있습니다.
버전 간의 모든 리소스 차이점을 보여주는 전체 지도는 v2~v3 참조를 검토하세요.
{drive_api_short} 버전은 언어별로 다르게 설정됩니다.
var DISCOVERY_DOCS = ["https://www.googleapis.com/discovery/v1/apis/drive/v3/rest"];
- Python의 경우 서비스 객체를 빌드할 때 버전을 지정합니다. 예를 들어 Python 빠른 시작을 참고하세요.
service = build('drive', 'v3', credentials=creds)
- Node.js의 경우 google.drive 생성자를 설정할 때 버전을 정의합니다. 예를 보려면 Node.js 빠른 시작을 참고하세요.
const drive = google.drive({version: 'v3', auth});
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-29(UTC)
[null,null,["최종 업데이트: 2025-08-29(UTC)"],[],[],null,["# Migrate to Drive API v3\n\nIf you are currently using Drive API v2, you can migrate to v3.\n\nYou should review the [V2 to v3 reference](/workspace/drive/api/guides/v2-to-v3-reference) for a complete map of all resource differences between versions.\n\nThe {drive_api_short} version is set differently for each language:\n\n- For Java, you download the v3 library. See [Drive API client library for Java](https://github.com/googleapis/google-api-java-client-services/tree/main/clients/google-api-services-drive/v3).\n For an example, see [Java Quickstart](/workspace/drive/api/quickstart/java).\n\n- For JavaScript, you define the version with the Discovery docs URL. For an example,\n see [Browser Quickstart](/workspace/drive/api/quickstart/js).\n\n var DISCOVERY_DOCS = [\"https://www.googleapis.com/discovery/v1/apis/drive/v3/rest\"];\n\n- For Python, you specify the version when you build the service object. For an example, see [Python Quickstart](/workspace/drive/api/quickstart/python).\n\n service = build('drive', 'v3', credentials=creds)\n\n- For Node.js, you define the version when you set the google.drive constructor. For an example, see [Node.js Quickstart](/workspace/drive/api/quickstart/nodejs).\n\n const drive = google.drive({version: 'v3', auth});"]]