with Domo and Serenity* AI Hub?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
domo: {
type: "app",
app: "domo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.domo.com/v1/users`,
headers: {
Authorization: `Bearer ${this.domo.$auth.oauth_access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
serenity_ai_hub: {
type: "app",
app: "serenity_ai_hub",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.serenitystar.ai/api/v2/Account`,
headers: {
"content-type": `application/json-patch+json`,
"x-api-key": `${this.serenity_ai_hub.$auth.api_key}`,
},
})
},
})