with Botsonic and Catch-all Verifier?
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: {
catch_all_verifier: {
type: "app",
app: "catch_all_verifier",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.catchallverifier.com/api/v1/verify/single`,
headers: {
"authorization": `${this.catch_all_verifier.$auth.api_key}`,
"accept": `application/json`,
},
params: {
id: `${this.catch_all_verifier.$auth.single_verification_id}`,
},
})
},
})