with Aidbase and OneSignal (REST API)?
Emit new event when a new knowledge item is added to a chatbot.
Emit new event when a new knowledge item is added to an email inbox.
Emit new event when a new knowledge item is added to a ticket form.
Add a new question to a FAQ in Airbase. See the documentation
Add a video as a piece of knowledge to your Aidbase account. See the documentation
Create a new frequently asked questions (FAQ) list on your Aidbase account. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
aidbase: {
type: "app",
app: "aidbase",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.aidbase.ai/v1/status`,
headers: {
Authorization: `Bearer ${this.aidbase.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
OneSignal's REST API enables developers to automate the delivery of push notifications, manage users and segments, and gather analytics to refine communication strategies. By integrating OneSignal with Pipedream, you can orchestrate complex workflows that react to events or schedules, synchronize user data across platforms, and personalize user engagement with cross-channel marketing tools.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
onesignal_rest_api: {
type: "app",
app: "onesignal_rest_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://onesignal.com/api/v1/players`,
headers: {
"Authorization": `Basic ${this.onesignal_rest_api.$auth.rest_api_key}`,
},
params: {
app_id: `${this.onesignal_rest_api.$auth.app_id}`,
},
})
},
})