빠른 시작에서는 Google Workspace API를 호출하는 앱을 설정하고 실행하는 방법을 설명합니다.
Google Workspace 빠른 시작에서는 API 클라이언트 라이브러리를 사용하여 인증 및 승인 흐름의 일부 세부정보를 처리합니다. 자체 앱에는 클라이언트 라이브러리를 사용하는 것이 좋습니다. 이 빠른 시작에서는 테스트 환경에 적합한 간소화된 인증 접근 방식을 사용합니다. 프로덕션 환경의 경우 앱에 적합한 액세스 사용자 인증 정보를 선택하기 전에 인증 및 승인에 관해 알아보는 것이 좋습니다.
/** * Prints the title of the sample document: * https://docs.google.com/document/d/195j9eDD3ccgjQRttHhJPymLJUCOUjs-jmwTrekvdjFE/edit * @see https://developers.google.com/docs/api/reference/rest/v1/documents/get */functionprintDocTitle(){constdocumentId='195j9eDD3ccgjQRttHhJPymLJUCOUjs-jmwTrekvdjFE';constdoc=Docs.Documents.get(documentId,{'includeTabsContent':true});console.log(`Thetitleofthedocis:${doc.title}`);}
[null,null,["최종 업데이트: 2024-12-21(UTC)"],[[["This quickstart demonstrates how to create a Google Apps Script that interacts with the Google Docs API to retrieve and print a document's title."],["Before running, you'll need a Google Account with access to Google Drive and must enable the Google Docs API within the script."],["Upon execution, the script requires authorization to access your Google Docs data, and the output is displayed in the execution log."],["For production environments, explore comprehensive authentication and authorization methods for enhanced security beyond this simplified approach."],["Further resources include advanced Apps Script documentation, troubleshooting guides, and detailed Docs API references for deeper exploration."]]],[]]