with VideoAsk and Chat Data?
Create a chatbot with the specified properties. See the documentation
Get status of the Chatbot with the specified ID. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
videoask: {
type: "app",
app: "videoask",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.videoask.com/me`,
headers: {
"Authorization": `Bearer ${this.videoask.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chat_data: {
type: "app",
app: "chat_data",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.chat-data.com/api/v2/current-plan`,
headers: {
Authorization: `Bearer ${this.chat_data.$auth.api_key}`,
},
})
},
})