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}`,
},
})
},
})
Create a chatbot with the specified properties. See the documentation
Get status of the Chatbot with the specified ID. See the documentation
Chat Data uses API keys for authentication. When you connect your Chat Data account, Pipedream securely stores the keys so you can easily authenticate to Chat Data APIs in both code and no-code steps.