with Botmaker and Predis.ai?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botmaker: {
type: "app",
app: "botmaker",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.botmaker.com/v2.0/messages`,
headers: {
"access-token": `${this.botmaker.$auth.access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
predis_ai: {
type: "app",
app: "predis_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://brain.predis.ai/predis_api/v1/get_posts/`,
headers: {
"authorization": `${this.predis_ai.$auth.api_key}`,
},
params: {
brand_id: `${this.predis_ai.$auth.brand_id}`,
},
})
},
})