Real-Time Operations and Incident Response
PagerDuty's APIs allow you to integrate the powerful incident response
capabilities of PagerDuty with your own custom applications. With PagerDuty's
APIs, you can build applications to optimize your incident response process,
collaborate with teams more effectively, and analyze data from your incident
response process. Here are some examples of what you can do with PagerDuty's
APIs:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pagerduty: {
type: "app",
app: "pagerduty",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pagerduty.com/users/me`,
headers: {
Authorization: `Bearer ${this.pagerduty.$auth.oauth_access_token}`,
"Accept": `application/vnd.pagerduty+json;version=2`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})