{"action":"created","comment":{"url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/comments/191970998","pull_request_review_id":124646915,"id":191970998,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MTk3MDk5OA==","diff_hunk":"@@ -1,29 +1,42 @@\n-# Express All Interacttions Example\n+# Express All Interactions Example\n \n This example shows a fully functioning app using the\n [Slack Interactive Messages](https://github.com/slackapi/node-slack-interactive-messages) package.\n \n ## Setup\n \n-### Create a Slack app\n+### Create and Install a Slack app\n \n 1. Create an app at <https://api.slack.com/apps> (don't close this window, you'll need it later).\n \n+2. Once you've created the app, navigate to the \"Install App\" page on the sidebar. You'll see a hyperlink to add a 'permission scope' -- click on this.\n+\n+3. Scroll down to **Scopes**, and under the dropdown labeled **Select Permission Scopes**, select the option that says \"Add slash commands and add actions to messages (and view related content).\" Save your changes.\n+\n+4. Click on \"Install App\" in the sidebar, and click on the green **Install App** button. Once you've confirmed that you want to install your app, a page with an OAuth Access Token should appear.\n+\n+\n ### Run the code\n \n 1. Choose where you want to run:\n   *  Either clone this repo, navigate to this directory, and run `npm install`\n   *  Or, <a href=\"https://glitch.com/edit/#!/remix/slack-express-all-interactions-example\"><img src=\"https://cdn.glitch.com/2bdfb3f8-05ef-4035-a06e-2043962a3a13%2Fremix%402x.png?1513093958726\" alt=\"remix button\" aria-label=\"remix\" height=\"33\"></a>\n \n-2. Set the following environment variables\n-  *  `SLACK_VERIFICATION_TOKEN`: Available on your app's _Basic Information_ page in Slack.\n-  *  `SLACK_ACCESS_TOKEN`: Available on your app's _Install App_ page in Slack (after installing on your Development Workspace).\n+2. Set the following environment variables (note: you can find these parameters in the `.env.sample` file. **If on Glitch**, copy into the `🗝.env` file and fill out there; **If local**, copy into a new `.env` file, fill that out, and run `source .env`):\n+  *  `SLACK_VERIFICATION_TOKEN`: Available on your app's _Basic Information_ page in Slack. Scroll down to **App Credentials** and you will see it in the textbox labeled **Verification Token**.\n+  *  `SLACK_ACCESS_TOKEN`: Available on your app's _Install App_ page in Slack, in the box labeled **OAuth Access Token**.\n   *  `PORT`: _ONLY_ if you are running locally\n \n 3. _ONLY_ If you're running the app locally:\n   *  Make sure you're on a supported version of node (see `.nvmrc` or if you have nvm run `nvm use`)\n   *  Start the app (`npm start`)\n-  *  In another terminal window, start ngrok on the same port as the webserver (`ngrok http $PORT`)\n+\n+### About Glitch/ngrok\n+\n+The rest of the instructions will ask you either to use an ngrok URL or a Glitch URL.\n+\n+* If you're running the app locally, we recommend exposing your port via [ngrok](https://ngrok.com/). If you have ngrok installed, run `ngrok http [YOUR PORT]`. Use the resultant URL henceforth.\n+* Alternatively, if you're working off Glitch, hit the \"share button\" and use the URL provided in the \"Share Your App\" area henceforth.","path":"examples/express-all-interactions/README.md","position":45,"original_position":45,"commit_id":"2eb508d3ffed79c9c7a9271b1e3da30129e22499","original_commit_id":"2eb508d3ffed79c9c7a9271b1e3da30129e22499","user":{"login":"aoberoi","id":494795,"node_id":"MDQ6VXNlcjQ5NDc5NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/494795?v=4","gravatar_id":"","url":"https://api.github.com/users/aoberoi","html_url":"https://github.com/aoberoi","followers_url":"https://api.github.com/users/aoberoi/followers","following_url":"https://api.github.com/users/aoberoi/following{/other_user}","gists_url":"https://api.github.com/users/aoberoi/gists{/gist_id}","starred_url":"https://api.github.com/users/aoberoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aoberoi/subscriptions","organizations_url":"https://api.github.com/users/aoberoi/orgs","repos_url":"https://api.github.com/users/aoberoi/repos","events_url":"https://api.github.com/users/aoberoi/events{/privacy}","received_events_url":"https://api.github.com/users/aoberoi/received_events","type":"User","site_admin":false},"body":"ditto.","created_at":"2018-05-31T01:56:40Z","updated_at":"2018-05-31T01:56:50Z","html_url":"https://github.com/slackapi/node-slack-interactive-messages/pull/53#discussion_r191970998","pull_request_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/53","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/comments/191970998"},"html":{"href":"https://github.com/slackapi/node-slack-interactive-messages/pull/53#discussion_r191970998"},"pull_request":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/53","id":191239599,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxMjM5NTk5","html_url":"https://github.com/slackapi/node-slack-interactive-messages/pull/53","diff_url":"https://github.com/slackapi/node-slack-interactive-messages/pull/53.diff","patch_url":"https://github.com/slackapi/node-slack-interactive-messages/pull/53.patch","issue_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/issues/53","number":53,"state":"open","locked":false,"title":"Issue #46 related changes+others","user":{"login":"ggruiz","id":39634349,"node_id":"MDQ6VXNlcjM5NjM0MzQ5","avatar_url":"https://avatars3.githubusercontent.com/u/39634349?v=4","gravatar_id":"","url":"https://api.github.com/users/ggruiz","html_url":"https://github.com/ggruiz","followers_url":"https://api.github.com/users/ggruiz/followers","following_url":"https://api.github.com/users/ggruiz/following{/other_user}","gists_url":"https://api.github.com/users/ggruiz/gists{/gist_id}","starred_url":"https://api.github.com/users/ggruiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggruiz/subscriptions","organizations_url":"https://api.github.com/users/ggruiz/orgs","repos_url":"https://api.github.com/users/ggruiz/repos","events_url":"https://api.github.com/users/ggruiz/events{/privacy}","received_events_url":"https://api.github.com/users/ggruiz/received_events","type":"User","site_admin":false},"body":"###  Summary\r\n\r\nFixes #46 \r\n\r\n* Adds instructions to \"install an app\" to get an OAuth access token before creating the environment.\r\n* Clarifies what is meant by \"ngrok URL\"/\"glitch URL\"\r\n* Clarifies where to put environment variables\r\n* Tells users in `.env.sample` to uncomment port for local installation\r\n* in `package.json`, `@slack/interactive-messages` -> `\"^0.3.0\"`\r\n\r\nAlso:\r\n\r\n* Add `.gitignore` file in example directory so that a user can work in this directory without worrying too much about accidentally committing unnecessary things when running `npm install`\r\n\r\n### Requirements (place an `x` in each `[ ]`)\r\n\r\n* [x] I've read and understood the [Contributing guidelines](https://github.com/slackapi/node-slack-interactive-messages/blob/master/.github/contributing.md) and have done my best effort to follow them.\r\n* [x] I've read and agree to the [Code of Conduct](https://slackhq.github.io/code-of-conduct).\r\n","created_at":"2018-05-29T18:58:37Z","updated_at":"2018-05-31T01:56:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bf7daec8b481fe29ef071c110f05350aae96e6a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/53/commits","review_comments_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/53/comments","review_comment_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/issues/53/comments","statuses_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/statuses/2eb508d3ffed79c9c7a9271b1e3da30129e22499","head":{"label":"ggruiz:example-app-instructions-improve","ref":"example-app-instructions-improve","sha":"2eb508d3ffed79c9c7a9271b1e3da30129e22499","user":{"login":"ggruiz","id":39634349,"node_id":"MDQ6VXNlcjM5NjM0MzQ5","avatar_url":"https://avatars3.githubusercontent.com/u/39634349?v=4","gravatar_id":"","url":"https://api.github.com/users/ggruiz","html_url":"https://github.com/ggruiz","followers_url":"https://api.github.com/users/ggruiz/followers","following_url":"https://api.github.com/users/ggruiz/following{/other_user}","gists_url":"https://api.github.com/users/ggruiz/gists{/gist_id}","starred_url":"https://api.github.com/users/ggruiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggruiz/subscriptions","organizations_url":"https://api.github.com/users/ggruiz/orgs","repos_url":"https://api.github.com/users/ggruiz/repos","events_url":"https://api.github.com/users/ggruiz/events{/privacy}","received_events_url":"https://api.github.com/users/ggruiz/received_events","type":"User","site_admin":false},"repo":{"id":135332311,"node_id":"MDEwOlJlcG9zaXRvcnkxMzUzMzIzMTE=","name":"node-slack-interactive-messages","full_name":"ggruiz/node-slack-interactive-messages","owner":{"login":"ggruiz","id":39634349,"node_id":"MDQ6VXNlcjM5NjM0MzQ5","avatar_url":"https://avatars3.githubusercontent.com/u/39634349?v=4","gravatar_id":"","url":"https://api.github.com/users/ggruiz","html_url":"https://github.com/ggruiz","followers_url":"https://api.github.com/users/ggruiz/followers","following_url":"https://api.github.com/users/ggruiz/following{/other_user}","gists_url":"https://api.github.com/users/ggruiz/gists{/gist_id}","starred_url":"https://api.github.com/users/ggruiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggruiz/subscriptions","organizations_url":"https://api.github.com/users/ggruiz/orgs","repos_url":"https://api.github.com/users/ggruiz/repos","events_url":"https://api.github.com/users/ggruiz/events{/privacy}","received_events_url":"https://api.github.com/users/ggruiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ggruiz/node-slack-interactive-messages","description":"Slack Buttons, Menus, and Dialogs made simpler for Node","fork":true,"url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages","forks_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/forks","keys_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/teams","hooks_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/hooks","issue_events_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/issues/events{/number}","events_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/events","assignees_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/assignees{/user}","branches_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/branches{/branch}","tags_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/tags","blobs_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/git/refs{/sha}","trees_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/statuses/{sha}","languages_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/languages","stargazers_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/stargazers","contributors_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/contributors","subscribers_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/subscribers","subscription_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/subscription","commits_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/commits{/sha}","git_commits_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/git/commits{/sha}","comments_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/comments{/number}","issue_comment_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/issues/comments{/number}","contents_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/contents/{+path}","compare_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/merges","archive_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/downloads","issues_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/issues{/number}","pulls_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/pulls{/number}","milestones_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/milestones{/number}","notifications_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/labels{/name}","releases_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/releases{/id}","deployments_url":"https://api.github.com/repos/ggruiz/node-slack-interactive-messages/deployments","created_at":"2018-05-29T17:44:52Z","updated_at":"2018-05-29T17:44:54Z","pushed_at":"2018-05-29T21:54:36Z","git_url":"git://github.com/ggruiz/node-slack-interactive-messages.git","ssh_url":"git@github.com:ggruiz/node-slack-interactive-messages.git","clone_url":"https://github.com/ggruiz/node-slack-interactive-messages.git","svn_url":"https://github.com/ggruiz/node-slack-interactive-messages","homepage":"","size":2296,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"slackapi:master","ref":"master","sha":"97a737e66f210a98fe65b5066ef08c18df4691ef","user":{"login":"slackapi","id":6962987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjI5ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/6962987?v=4","gravatar_id":"","url":"https://api.github.com/users/slackapi","html_url":"https://github.com/slackapi","followers_url":"https://api.github.com/users/slackapi/followers","following_url":"https://api.github.com/users/slackapi/following{/other_user}","gists_url":"https://api.github.com/users/slackapi/gists{/gist_id}","starred_url":"https://api.github.com/users/slackapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackapi/subscriptions","organizations_url":"https://api.github.com/users/slackapi/orgs","repos_url":"https://api.github.com/users/slackapi/repos","events_url":"https://api.github.com/users/slackapi/events{/privacy}","received_events_url":"https://api.github.com/users/slackapi/received_events","type":"Organization","site_admin":false},"repo":{"id":88192152,"node_id":"MDEwOlJlcG9zaXRvcnk4ODE5MjE1Mg==","name":"node-slack-interactive-messages","full_name":"slackapi/node-slack-interactive-messages","owner":{"login":"slackapi","id":6962987,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5NjI5ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/6962987?v=4","gravatar_id":"","url":"https://api.github.com/users/slackapi","html_url":"https://github.com/slackapi","followers_url":"https://api.github.com/users/slackapi/followers","following_url":"https://api.github.com/users/slackapi/following{/other_user}","gists_url":"https://api.github.com/users/slackapi/gists{/gist_id}","starred_url":"https://api.github.com/users/slackapi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slackapi/subscriptions","organizations_url":"https://api.github.com/users/slackapi/orgs","repos_url":"https://api.github.com/users/slackapi/repos","events_url":"https://api.github.com/users/slackapi/events{/privacy}","received_events_url":"https://api.github.com/users/slackapi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slackapi/node-slack-interactive-messages","description":"Slack Buttons, Menus, and Dialogs made simpler for Node","fork":false,"url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages","forks_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/forks","keys_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/teams","hooks_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/hooks","issue_events_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/issues/events{/number}","events_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/events","assignees_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/assignees{/user}","branches_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/branches{/branch}","tags_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/tags","blobs_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/git/refs{/sha}","trees_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/statuses/{sha}","languages_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/languages","stargazers_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/stargazers","contributors_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/contributors","subscribers_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/subscribers","subscription_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/subscription","commits_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/commits{/sha}","git_commits_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/git/commits{/sha}","comments_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/comments{/number}","issue_comment_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/issues/comments{/number}","contents_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/contents/{+path}","compare_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/merges","archive_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/downloads","issues_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/issues{/number}","pulls_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls{/number}","milestones_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/milestones{/number}","notifications_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/labels{/name}","releases_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/releases{/id}","deployments_url":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/deployments","created_at":"2017-04-13T17:56:56Z","updated_at":"2018-05-28T16:16:02Z","pushed_at":"2018-05-29T21:54:38Z","git_url":"git://github.com/slackapi/node-slack-interactive-messages.git","ssh_url":"git@github.com:slackapi/node-slack-interactive-messages.git","clone_url":"https://github.com/slackapi/node-slack-interactive-messages.git","svn_url":"https://github.com/slackapi/node-slack-interactive-messages","homepage":"","size":2293,"stargazers_count":39,"watchers_count":39,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":15,"open_issues":14,"watchers":39,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/53"},"html":{"href":"https://github.com/slackapi/node-slack-interactive-messages/pull/53"},"issue":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/issues/53"},"comments":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/slackapi/node-slack-interactive-messages/statuses/2eb508d3ffed79c9c7a9271b1e3da30129e22499"}},"author_association":"NONE"}}
{"actor":{"display_login":"aoberoi"}}