Connect Pipedream to any IMAP email provider to trigger custom workflows.
Emit new event each time a record is added, updated, or deleted in an Airtable table. See the documentation
Emit new event for each new or modified field in a table
Emit new event for each new or modified record in a table
Create one or more records in a table by passing an array of objects containing field names and values as key/value pairs. See the documentation
Updates a record if recordId
is provided or adds a record to a table.
The Internet Message Access Protocol (IMAP) is a mail protocol used for
accessing email on a remote web server.
IMAP provides a way to access email stored on a server, allowing you to read,
write, and delete emails from your account.
IMAP is a popular protocol for accessing email, and is supported by most email
providers.
Here are some things you can build using the IMAP API:
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");
},
})
Using the Airtable API, you can build applications that can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
airtable_oauth: {
type: "app",
app: "airtable_oauth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.airtable.com/v0/meta/whoami`,
headers: {
Authorization: `Bearer ${this.airtable_oauth.$auth.oauth_access_token}`,
},
})
},
})