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
While we build our official integrations, we want to create examples of how to create jobs which use other APIs with Trigger.dev. This reference will be used in the app on any service we don’t have an integration for yet.
Details:
In this example, you will build a simple job using the Shopify API and SDK. This will replace the GitHub example we currently have in the app:
This job must connect to the Shopify, using the SDK, and return an example payload from the API.
Create a new file in the src folder, named to match the API (e.g. GitHub would be called github.ts).
The Trigger.dev client must be defined at the top of the job, with the 'api-reference' id:
const client = new TriggerClient({ id: "api-reference" });
You must add the Express specific lines to the bottom of the Job file:
// These lines can be removed if you don't want to use express
import { createExpressServer } from "@trigger.dev/express";
createExpressServer(client);
You must add the new script to the package.json file, in this format:
You must test this Job works before submitting your PR, including a 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:
While we build our official integrations, we want to create examples of how to create jobs which use other APIs with Trigger.dev. This reference will be used in the app on any service we don’t have an integration for yet.
Details:
In this example, you will build a simple job using the Shopify API and SDK. This will replace the GitHub example we currently have in the app:
This job must connect to the Shopify, using the SDK, and return an example payload from the API.
The job should use an
eventTrigger
The job should use
zod
to define the payloadsUse the structure of our GitHub API reference file
Requirements:
src
folder, named to match the API (e.g. GitHub would be calledgithub.ts
).Important
You must test this Job works before submitting your PR, including a 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: