with MeisterTask and RabbitMQ?
Emit new event when a new comment is created. See the docs
Emit new event when a new project is created. See the docs
Emit new event when a new section is created. See the docs
MeisterTask's API enables automation of task management processes, offering a programmatic way to interact with your tasks and projects. By leveraging the API with Pipedream, you can create powerful, serverless workflows that react to events in MeisterTask, manipulate tasks and projects, or synchronize data across multiple platforms. It's a robust tool for enhancing productivity and streamlining project collaboration.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
meistertask: {
type: "app",
app: "meistertask",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.meistertask.com/api/persons/me`,
headers: {
Authorization: `Bearer ${this.meistertask.$auth.oauth_access_token}`,
},
})
},
})
import amqp from "amqplib";
export default defineComponent({
props: {
rabbitmq: {
type: "app",
app: "rabbitmq",
}
},
async run({ steps, $ }) {
const url = `amqp://${this.rabbitmq.$auth.username}:${this.rabbitmq.$auth.password}@${this.rabbitmq.$auth.host}:${this.rabbitmq.$auth.port}`;
const connection = await amqp.connect(url);
const channel = await connection.createChannel();
const queue = 'Sample Queue';
await channel.assertQueue(queue, { durable: true });
const message = 'Welcome RabbitMQ + Pipedream users! ' + new Date().toISOString()
channel.sendToQueue(queue, Buffer.from(message), { persistent: true });
console.log(`Sent: ${message}`);
const queueInfo = await channel.checkQueue(queue);
return queueInfo;
},
})