はじめに GASをAppsScriptAPIを使って外部から実行する方法を検索しても、あまり詳細に書いてある記事がヒットしなかったため、まとめました。できるだけ分かりやすいように書いてみたので、冗長と思う方は以下のリンクなどを参考にしてください。 目次 Qiitaの都合上、目次と見出しではGASをgas、GCPをgcp、Node.jsをnode jsとしています。 1.はじめに 2.gasとgcpの設定 3.外部から実行 4.node jsサンプル gasとgcpの設定 GCPからプロジェクト作成とGASとの連携 GCP(Google Cloud Platform)からプロジェクトを新規作成します。 GoogleCloudPlatform AppsScriptAPIの有効化 AppsScriptAPIを検索して有効化してください。 OAuth同意画面・OAuthクライアントIDを作成 OA