This was inspired by Dylan and https://levels.io/slack-typeform-auto-invite-sign-ups/
I'm using sqlite as the database to store the typeform data, so you'd need to have the sqlite dev stuff installed:
-
Debian / Ubuntu
sudo apt-get install libsqlite3-dev
-
RedHat / Fedora
sudo yum install sqlite-devel
-
MacPorts
sudo port install sqlite3
-
HomeBrew
sudo brew install sqlite
After that, checkout this repository. Change into the checked out repo folder.
git checkout git@github.com:parasquid/typeform_slack_integration_ruby.git
cd typeform_slack_integration_ruby
Then do bundle install
Copy or rename the .env.example
file to .env
e.g. cp .env.example .env
Change the contents of .env
to your own api keys. Alternatively, you can just create your own env vars on the server.
You can then install this into your crontab. Suggested crontab:
*/1 * * * * /path/to/your/repository/typeform_to_slack_worker.rb >> ~/typeform_to_slack_worker.logs
-
Typeform ID can be found when opening the Typeform URL:
https://[yourdomain].typeform.com/to/[typeformID]
-
Get your typeform API key here:
https://admin.typeform.com/account
-
Field IDs can be found in the API return
https://api.typeform.com/v0/form/[YourTypeformID]?key=[API Key]&completed=true
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request