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-02-24(UTC)
[null,null,["최종 업데이트: 2025-02-24(UTC)"],[[["Drive API users can migrate from v2 to v3 using the provided reference guide."],["The v3 implementation varies by language, with Java requiring a library download, JavaScript needing a Discovery docs URL, Python specifying during service object creation, and Node.js setting it in the google.drive constructor."]]],["Drive API v2 users can migrate to v3, consulting the provided reference for resource differences. Version specification varies by language: Java users download the v3 library; JavaScript users define the version via a Discovery docs URL. Python developers specify the version when building the service object, and Node.js developers define the version during the `google.drive` constructor. Each language has a quickstart for an example on the implementation.\n"]]