with Woopra and E2B?
The Woopra API lets you track customer interactions in real time, analyze customer behavior, and automate responses based on that behavior. Using Pipedream, you can create workflows that trigger on various events, push or pull data to/from Woopra, and connect Woopra with other apps to enhance your data-driven decision-making processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
woopra: {
type: "app",
app: "woopra",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://www.woopra.com/track/ce/`,
auth: {
username: `${this.woopra.$auth.app_id}`,
password: `${this.woopra.$auth.secret}`,
},
params: {
host: `pipedream.com`,
response: `json`,
cookie: `{your_cookie}`,
event: `{your_event_name}`,
},
})
},
})
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
},
})