Typeform Webhook Handler in Swift

Receive Typeform webhook payload using Swift and Vapor

GitHub followers
Twitter Follow
Built with ? by
Nicolas Grenié

Requirements

Have Swift 5.4.0 installed
Xcode installed
Vapor

Install

git clone https://github.com/picsoung/typeform-swift-webhook.git
cd typeform-swift-webhook
open Package.swift

This should load of the neccessary packages.

Once packages have been downloaded, click the ▶️Play button.
This should launch a console saying.

[ INFO ] Server starting on http://127.0.0.1:8080

Setup

For higher security, Typeform signs your webhook payload using a secret. You can define this secret in the settings of your webhook on Typeform’s side.
Replace the secret in routes.swift.

The webhook route is on /webhook.

Support

Feel free to reach out if you either want to use this project or if you found a bug.

GitHub

View Github