with Hubflo 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: {
hubflo: {
type: "app",
app: "hubflo",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.hubflo.com/api/v2/pings`,
headers: {
Authorization: `Bearer ${this.hubflo.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
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}`,
},
})
},
})