Conversation
Here's what was needed to build the integration:
🔐 Authentication method. Could be a simple API key you give to users, but I already had an OAuth2 flow setup so you can "Sign in with WIP"
2
1
Replying to
⤴️ Call the webhooks. When a todo gets created or completed, I check for any matching webhook subscriptions in our database and make a POST request to the associated URL.
1
⤵️ This provides Zapier with the relevant details (e.g. todo text), which it then passes on to the next action (e.g. creating a Tweet)
1
✨ There's a few more parts to make it a nicer user experience like providing sample data when creating a Zap and a project selector.
Both re-use the existing GraphQL API we already have for WIP.
1
BTW, instead of using webhook subscriptions you could also just let Zapier periodically poll your API for new data.
This would arguably have been a more pragmatic approach as it would require zero new code.
1
If you are a WIP member, you can try the beta here:
zapier.com/developer/publ
