You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HTTP endpoints allow you to subscribe to changes from an API. You can use defineHttpEndpoint to receive webhooks, verify them, and create an HTTP Trigger.
Details:
The task is to create a job example which is triggered by an HTTP Trigger when a change is received from Google Docs.
Check out our simple Cal.com example. This is a simple implementation.
Check out our WhatsApp example. This is a more advanced implementation (using respondWith) because WhatsApp sends a verification GET request to confirm before the webhooks can be created. Most APIs don't required this.
You must test this Job works before submitting your PR, including a video or screenshot of a successful run. This may involve you having to setup accounts with services.
The text was updated successfully, but these errors were encountered:
Overview
HTTP endpoints allow you to subscribe to changes from an API. You can use
defineHttpEndpoint
to receive webhooks, verify them, and create an HTTP Trigger.Details:
The task is to create a job example which is triggered by an HTTP Trigger when a change is received from Google Docs.
Reference material:
respondWith
) because WhatsApp sends a verification GET request to confirm before the webhooks can be created. Most APIs don't required this.Requirements:
Guidelines:
const body = await request.json() as WebhookPayload
io.runTask()
callback - initialise clients and auth in global scope if possibleRequired structure:
Follow this guide to get the project setup.
Create a new file in the src folder, named to match the API, with '-http-endpoint' at the end (e.g. GitHub would be called
github-http-endpoint.ts
).The Trigger.dev client must be defined at the top of the job, with the 'api-reference' id:
4. You must add the Express specific lines to the bottom of the Job file:
5. You must add the new script to the package.json file, in this format:
Important
You must test this Job works before submitting your PR, including a video or screenshot of a successful run. This may involve you having to setup accounts with services.
The text was updated successfully, but these errors were encountered: