import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rootly: {
type: "app",
app: "rootly",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.rootly.com/v1/users/me`,
headers: {
Authorization: `Bearer ${this.rootly.$auth.api_key}`,
},
})
},
})
Rootly uses API keys for authentication. When you connect your Rootly account, Pipedream securely stores the keys so you can easily authenticate to Rootly APIs in both code and no-code steps.