/** * 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."]]],[]]