with Botsonic and Scrapeless?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
botsonic: {
type: "app",
app: "botsonic",
}
},
async run({steps, $}) {
const data = {
"input_text": `{{your_input_text}}`, //E.g. How to develop these skills?
"chat_id": `{{your_chat_id}}`, //E.g. 9f2569da-ba86-4a88-a4c0-9932a91bedf4
}
return await axios($, {
method: "post",
url: `${this.botsonic.$auth.generate_endpoint}`,
headers: {
"token": `${this.botsonic.$auth.api_key}`,
"Accept": `application/json`,
"Content-Type": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
scrapeless: {
type: "app",
app: "scrapeless",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.scrapeless.com/api/v1/me`,
headers: {
"x-api-token": `${this.scrapeless.$auth.api_key}`,
},
})
},
})