Skip to content

parasquid/typeform_slack_integration_ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typeform and Slack Integration

This was inspired by Dylan and https://levels.io/slack-typeform-auto-invite-sign-ups/

How to use

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

Configuration File

  1. Get slack oAuth token here

  2. Typeform ID can be found when opening the Typeform URL: https://[yourdomain].typeform.com/to/[typeformID]

  3. Get your typeform API key here: https://admin.typeform.com/account

  4. Field IDs can be found in the API return https://api.typeform.com/v0/form/[YourTypeformID]?key=[API Key]&completed=true

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages