サンプル
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
このセクションでは、Apps Script API を使用するサンプルと開発ツールについて説明します。
レシピ
このセクションに記載されている「レシピ」の例は、一般的な Apps Script アクションを Apps Script API リクエストとして表現する方法を示しています。
これらの例は、Google API クライアント ライブラリを使用して特定の言語で Apps Script API リクエスト プロトコルで示されています。例については、関数を実行するガイドをご覧ください。
このセクションのレシピは、次のカテゴリに分類されています。
- Apps Script 関数の実行 - 他のアプリから Apps Script 関数をリモートで呼び出す方法を示すレシピ。
- プロジェクト管理 - 新しいプロジェクトの作成、スクリプト ファイルの取得、プロジェクト コンテンツの更新など、基本的なプロジェクト アクションを示すレシピ。
開発リソース
Apps Script 用の clasp
コマンドライン ツールを使用すると、ローカルマシンから Apps Script プロジェクトを開発および保守できます。clasp
は、プロジェクト管理に Apps Script API を使用する Node.js オープンソース プロジェクトです。API の呼び出し方法は、clasp
GitHub リポジトリで確認できます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[[["\u003cp\u003eThis section offers samples and development tools utilizing the Apps Script API, including recipes demonstrating common Apps Script actions as API requests.\u003c/p\u003e\n"],["\u003cp\u003eRecipes are categorized into executing Apps Script functions remotely and managing projects (creating, retrieving, updating).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eclasp\u003c/code\u003e command-line tool enables local development and maintenance of Apps Script projects using the Apps Script API.\u003c/p\u003e\n"]]],[],null,["# Samples\n\nThis section provides samples and development tools that use the Apps Script API.\n\nRecipes\n-------\n\nThe 'recipe' examples listed in this section demonstrate how to express common\nApps Script actions as Apps Script API requests.\n\nThese examples are presented in Apps Script API request protocols in a\nspecific language using Google API client libraries, see the\n[Executing an function](/apps-script/api/how-tos/execute) guide\nfor examples.\n\nRecipes in this section are divided into the following categories:\n\n- [Executing Apps Script Functions](/apps-script/api/samples/execute) --- Recipes that show how to remotely call Apps Script functions from other apps.\n- [Project Management](/apps-script/api/samples/manage) --- Recipes that show basic project actions such as creating new projects, retrieving script files, and updating project content.\n\nDevelopment resources\n---------------------\n\nThe [`clasp` command-line tool](/apps-script/guides/clasp) for Apps Script lets\nyou develop and maintain Apps Script projects from your local machine. `clasp`\nis a Node.js open-source project that uses Apps Script API for project\nmanagement; you can see how the API is called in the\n[`clasp` GitHub repository](https://github.com/google/clasp/)."]]