Verifies downtime from multiple locations
The Uptime Robot API allows you to monitor the uptime of your websites and services from a central hub. On Pipedream, you can harness this API to create automated workflows that trigger on events like downtime, maintenance, or performance issues. This enables real-time alerts, auto-generated reports, and seamless integration with other tools for incident management or data analysis.
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`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
The Discord API interacts seamlessly with Pipedream, empowering you to craft customized automations and workflows for your Discord server. With this powerful integration, you can automate tasks like message posting, user management, and notifications, based on a myriad of triggers and actions from different apps. These automations can enhance the Discord experience for community moderators and members, by synchronizing with external tools, organizing community engagement, and streamlining notifications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
discord: {
type: "app",
app: "discord",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://discord.com/api/users/@me`,
headers: {
Authorization: `Bearer ${this.discord.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})