How to use Trigger.dev Integrations
io
object in the run()
function with the same name as the key. For example:
postMessage
and addIssueLabels
functions above are implemented as an “Authenticated Task” that is defined inside the Integration, where the first argument is always the task key and the second argument is the parameters for the task. For example, here is how you would call the postMessage
function above:
runTask
function to get access to the authenticated client.
For example, the Slack integration doesn’t expose an Authenticated Task function for deleting a message, but you can use the chat.delete
function provided by the @slack/web-api package directly:
runTask
to specify the task parameters:
.native
property on the integration to get direct access to the client. For example:
push
trigger that will start a Job when a new commit is pushed to a repository:
@trigger.dev/github
integration will create a webhook on your repository that will call our API when a new push event is received. We will then start your Job with the payload from the push event.
integrations
option.