with Bugsnag and SwarmNode?
The Bugsnag API enables you to interact programmatically with Bugsnag data, letting you manage and access error reports, project settings, and release tracking for your applications. With Pipedream's integration, you can automate workflows that respond to new errors, aggregate error data for analysis, or synchronize error information with other tools in your development stack.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bugsnag: {
type: "app",
app: "bugsnag",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bugsnag.com/user`,
headers: {
"Authorization": `token ${this.bugsnag.$auth.api_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
swarmnode: {
type: "app",
app: "swarmnode",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.swarmnode.ai/v1/agents/`,
headers: {
Authorization: `Bearer ${this.swarmnode.$auth.api_key}`,
},
})
},
})