with Datagma and E2B?
The Datagma API allows for the extraction and analysis of valuable data from emails. By using this API, you can automate the process of parsing emails to retrieve information like signatures, contact details, and other pertinent data. In Pipedream, this functionality becomes a powerful tool for creating workflows that can help to streamline business processes, enhance customer relationship management, or fuel data enrichment strategies.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
datagma: {
type: "app",
app: "datagma",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://gateway.datagma.net/api/ingress/v1/mine`,
params: {
apiId: `${this.datagma.$auth.api_key}`,
},
})
},
})
import 'dotenv/config';
import { Sandbox } from '@e2b/code-interpreter';
export default defineComponent({
props: {
e2b: {
type: "app",
app: "e2b",
}
},
async run({steps, $}) {
const sbx = await Sandbox.create({
apiKey: this.e2b.$auth.api_key
}); // By default the sandbox is alive for 5 minutes
return await sbx.runCode('print("hello world")'); // Execute Python inside the sandbox
},
})