Google Drive API 샘플
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이 섹션에서는 Google Drive API의 샘플을 제공합니다.
Drive API에 관한 소개 동영상은 Drive API 동영상 라이브러리를 참고하세요.
Google은 GitHub에 다음 샘플을 호스팅합니다. 이러한 저장소를 포크하고 코드를 자체 프로젝트의 참조로 사용할 수 있습니다.
Google Picker
Google 선택 도구 코드 샘플에서는 사용자가 웹 앱의 버튼에서 열 수 있는 이미지 선택 도구 또는 업로드 페이지를 사용하는 방법을 보여줍니다.
소스를 보거나 다운로드하려면 GitHub 저장소의 Google Picker를 방문하세요.
Quickeditors로 파일 열기 및 저장하기
이 Quickeditors 코드 샘플은 Drive API로 파일을 열고 저장하는 방법을 보여줍니다.
각 Drive 플랫폼별 예는 text/*
MIME 유형으로 Drive 파일을 수정할 수 있는 Quickeditor라는 텍스트 편집기인 단일 샘플 앱을 반영합니다. 웹 버전은 다음과 같은 두 가지 기본적인 Drive 사용 사례를 구현합니다.
두 사용 사례의 흐름은 비슷합니다. 사용자가 생성 메뉴 또는 등록된 MIME 유형이 있는 파일의 컨텍스트 메뉴에서 앱을 선택하면 Drive가 사용자를 앱으로 리디렉션합니다.
소스를 보거나 다운로드하려면 GitHub 저장소의 Drive Quickeditors를 방문하세요.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-29(UTC)
[null,null,["최종 업데이트: 2025-08-29(UTC)"],[],[],null,["# Google Drive API samples\n\nThis section provides samples for Google Drive API.\n\nFor introductory videos about Drive API, see the [Drive API\nvideo library](/workspace/drive/api/guides/videos).\n\nGoogle hosts the following samples on GitHub. You can fork these repositories\nand use the code as a reference for your own projects.\n\nGoogle Picker\n-------------\n\nThe [Google Picker code sample](/workspace/drive/picker/guides/sample) shows how to use\nan image selector or upload page that users can open from a button in a web app.\n\nTo view or download the source, visit\n[Google Picker](https://github.com/googleworkspace/browser-samples/tree/main/drive/picker)\non the GitHub repository.\n\nOpen and save files with Quickeditors\n-------------------------------------\n\nThis Quickeditors code sample shows how to open and save files with the\nDrive API.\n\nEach of the Drive platform-specific examples reflects a single\nsample app: a text editor, called a Quickeditor, capable of editing\nDrive files with the MIME type `text/*`. The [web\nversion](https://github.com/googleworkspace/drive-quickeditors/tree/main/web)\nimplements two fundamental Drive use cases:\n\n- [Integrate with Drive UI's \"New\" button](/workspace/drive/api/guides/integrate-create)\n- [Integrate with Drive UI's \"Open with\" context menu](/workspace/drive/api/guides/integrate-open)\n\nThe flow for both use cases is similar. Drive redirects a user to\nthe app after the user selects it from the create menu or the context menu of a\nfile with a registered [MIME type](/workspace/drive/api/guides/mime-types).\n\nTo view or download the source, visit [Drive\nQuickeditors](https://github.com/googledrive/web-quickeditor) on the GitHub\nrepository.\n\nRelated topics\n--------------\n\n- [The Google Picker API](/workspace/drive/picker/guides/overview)\n- [Drive UI integration overview](/workspace/drive/api/guides/about-apps)"]]