with IMAP and monday (OAuth)?
Emit new event when a column value is updated on a board. See the documentation
Emit new event when an item's name is updated. See the documentation
Emit new event when a board is created in Monday. See the documentation
Emit new event when a new item is added to a board. See the documentation
Using Pipedream's IMAP API, developers can automate interactions with their email inbox, enabling serverless workflows that perform actions based on incoming emails. This could include parsing email contents, triggering events upon receiving emails from specific senders, attaching labels, and much more. By leveraging IMAP, Pipedream can act as a bridge between your email and other services, streamlining processes that would otherwise require manual intervention.
import { once } from "events";
import imaps from "imap-simple";
import cycle from "cycle";
export default defineComponent({
props: {
imap: {
type: "app",
app: "imap",
}
},
async run({steps, $}) {
const { host, port, email, password } = this.imap.$auth;
const connection = await imaps.connect({
imap: {
host,
port,
user: email,
password,
tls: true,
tlsOptions: { servername: host },
authTimeout: 3000
},
});
const boxes = await connection.getBoxes();
// Filter out circular references to parents
const filteredBoxes = cycle.decycle(boxes);
$.export("results", filteredBoxes);
connection.end();
await once(connection.imap, "end");
},
})
The monday.com API enables developers to programmatically interact with their monday.com workspace, allowing for automated workflows, data management, and integrations with other applications. Using Pipedream's serverless platform, you can leverage this API to create custom workflows that respond to board updates, manage items automatically, and connect monday.com with hundreds of other apps.
You can connect your monday.com account in a few different ways:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
monday_oauth: {
type: "app",
app: "monday_oauth",
}
},
async run({steps, $}) {
const data = {
"query": "query { me { is_guest join_date email } }"
}
return await axios($, {
method: "post",
url: `https://api.monday.com/v2`,
headers: {
Authorization: `Bearer ${this.monday_oauth.$auth.oauth_access_token}`,
},
data,
})
},
})