Connect Pipedream to any IMAP email provider to trigger custom workflows.
Emit new event when a new milestone is created. See the docs here
Emit new event when a new project is created. See the docs here
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 Zoho Projects API lets you harness the full potential of project management by enabling seamless integration with other tools and automating routine tasks. With it, you can create projects, manage tasks, track time, and customize your workflow. On Pipedream, you can leverage this API to build robust automations that connect Zoho Projects with a plethora of other apps, streamlining project tracking and collaboration workflows, all without writing a single line of code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_projects: {
type: "app",
app: "zoho_projects",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://projectsapi.${this.zoho_projects.$auth.region}/restapi/portals/`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_projects.$auth.oauth_access_token}`,
},
})
},
})