with Mailtrap and Visibot?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mailtrap: {
type: "app",
app: "mailtrap",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://mailtrap.io/api/accounts`,
headers: {
Authorization: `Bearer ${this.mailtrap.$auth.api_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
visibot: {
type: "app",
app: "visibot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.visibot.app/me`,
headers: {
Authorization: `Bearer ${this.visibot.$auth.auth_key}`,
"accept": `application/json`,
},
})
},
})