Slash Command /qrcode [url]
- Heroku CLI (https://devcenter.heroku.com/articles/heroku-cli)
- git
- PHP 7.2 (recommend)
- Create your Heroku account and login.
heroku login
- Deploying with git.
git clone git@github.com:sameyasu/slack-qrcode.git
cd slack-qrcode
heroku create
git push heroku master
- Add configuration like this.
open https://(your-team).slack.com/apps/new/A0F82E8CA-slash-commands
- Integration Settings
Settings | Value |
---|---|
Command | /qrcode |
URL | https://(your-app-name).herokuapp.com/slash-command.php |
Method | GET or POST |
Token | Auto-generated by Slash commands Integeration Settings. |
- Setup token.
heroku config:set SLASH_COMMAND_TOKEN=(Token)
- Try
/qrcode test
by Slack.
The word "QR Code" is registered trademark of DENSO WAVE INCORPORATED