import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
uptime_robot: {
type: "app",
app: "uptime_robot",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.uptime_robot.$auth.api_key}`,
}
return await axios($, {
method: "post",
url: `https://api.uptimerobot.com/v2/getAlertContacts`,
data,
})
},
})
Uptime Robot uses API keys for authentication. When you connect your Uptime Robot account, Pipedream securely stores the keys so you can easily authenticate to Uptime Robot APIs in both code and no-code steps.
In order to find the API key in Uptime Robot, go to the My Settings page.