{"id":17005446,"url":"https://github.com/erikkalkoken/slack-sample-app-gas","last_synced_at":"2026-05-19T09:31:24.313Z","repository":{"id":119614285,"uuid":"200520373","full_name":"ErikKalkoken/slack-sample-app-gas","owner":"ErikKalkoken","description":"Slack sample app with Google App Script","archived":false,"fork":false,"pushed_at":"2019-08-04T17:33:16.000Z","size":7,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T10:29:14.326Z","etag":null,"topics":["google-apps-script","slack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ErikKalkoken.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-04T17:10:05.000Z","updated_at":"2024-02-15T00:19:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab72218b-dca2-4d31-9409-29941f8fc498","html_url":"https://github.com/ErikKalkoken/slack-sample-app-gas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErikKalkoken%2Fslack-sample-app-gas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErikKalkoken%2Fslack-sample-app-gas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErikKalkoken%2Fslack-sample-app-gas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ErikKalkoken%2Fslack-sample-app-gas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ErikKalkoken","download_url":"https://codeload.github.com/ErikKalkoken/slack-sample-app-gas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244945595,"owners_count":20536295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-apps-script","slack"],"created_at":"2024-10-14T04:46:28.411Z","updated_at":"2026-05-19T09:31:24.264Z","avatar_url":"https://github.com/ErikKalkoken.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# slack-sample-app-gas\n\nSlack sample app with Google App Script\n\n## Overview\n\nThis is a sample app demonstrating how to implement a Slack app with Google Apps Script.\n \nThe app is implementing a slash command and is doing a call to the Slack API.\n \nIt can be installed to multiple workspaces via standard \"Add to Slack\". It uses a Google sheet as storage for the workspace related information incl. tokens.\n \n ## Setup\n \nHere is what you need to run this app:\n \n1. Create a Google sheet\n \n2. Create a new Goolge Apps Script project\n \n3. Copy \u0026 paste the code from this repo into your project\n \n4. Deploy your project as web app and make sure to enable access to everyone incl. anonymous\n\n5. Create a new Slack app\n \n6. Add a slash command and use the URL of your deployed web app as request URL (should be ending with `/exec`)\n \n7. Go to Oauth \u0026 Permissions and add a redirect URL to your Slack app. It's the URL of your web app extended by `?finish_auth`.\n    So the new url should look something like this:\n    `https://script.google.com/macros/ ... /exec?finish_auth`\n \n8. Add the following script properties to your Google Apps project:\n    - SLACK_CLIENT_ID: Is the client ID of your Slack app\n    - SLACK_CLIENT_SECRET: Is the client secret of your Slack app\n    - SHEET_ID: Is the ID of your Google spreadsheet\n   \n    \u003e Tip: You can get the ID for your google spreadsheet from its url. The format is: `https://docs.google.com/spreadsheets/d/{ID}/edit#gid=0`, where `{ID}` is the ID (without the brackets).\n   \n9. Activate your Slack app for distribution under Manage Distribution\n   \n  \nThat's is. You can now access the web page of your Slack app to start the installation to a workspace. Enjoy!\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikkalkoken%2Fslack-sample-app-gas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferikkalkoken%2Fslack-sample-app-gas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferikkalkoken%2Fslack-sample-app-gas/lists"}