with EducateMe and E2B?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
educateme: {
type: "app",
app: "educateme",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.educateme.$auth.api_url}/courses`,
headers: {
"api-key": `${this.educateme.$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
},
})