with Ikas and Chat Data?
Emit new event when a customer account is created on ikas. You can only have one webhook of each type at the same time.
Emit new event when a new order is created on ikas. You can only have one webhook of each type at the same time.
Emit new event when a product is created on ikas. You can only have one webhook of each type at the same time.
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: {
ikas: {
type: "app",
app: "ikas",
}
},
async run({steps, $}) {
const data = {
"query": `{me { id email }}`,
}
return await axios($, {
method: "post",
url: `https://api.myikas.com/api/v1/admin/graphql`,
headers: {
Authorization: `Bearer ${this.ikas.$auth.oauth_access_token}`,
},
data,
})
},
})
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}`,
},
})
},
})