Skip to main content

webhook_snippets_js

New AMQP listener that uses a other process webhook
const axios = require('axios');

const listener = yepcode.listener.amqp("my-amqp-queue");
listener.start((message) => {
await axios.post(
'https://cloud.yepcode.io/api/{your-team-workspace}/webhooks/{your-other-process-slug}',
{
message: message.content
},
{
headers: {
'Authorization': 'Basic ...',
'Content-Type': 'application/json'
}
}
);
})