with Landbot and Issue Badge?
Emit new events when a new message is sent in a channel. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
landbot: {
type: "app",
app: "landbot",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.landbot.io/v1/agents/`,
headers: {
"Content-Type": `application/json`,
"Authorization": `Token ${this.landbot.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
issue_badge: {
type: "app",
app: "issue_badge",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.issuebadge.com/api/v1/validate-key`,
headers: {
Authorization: `Bearer ${this.issue_badge.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})