with Chattermill and Upgrade.chat?
Emit new event when a new response is created. See the documentation
Create response model with given attributes. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chattermill: {
type: "app",
app: "chattermill",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.chattermill.com/v1/projects`,
headers: {
Authorization: `Bearer ${this.chattermill.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
upgrade_chat: {
type: "app",
app: "upgrade_chat",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.upgrade.chat/v1/orders`,
headers: {
Authorization: `Bearer ${this.upgrade_chat.$auth.token}`,
"accept": `application/json`,
},
})
},
})