Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
Returns the daily average power consumed in W, on a given interval (by default 30 minutes). See the docs here
Returns the contact informations of a client. See the docs here
Returns the contract informations of a client. See the docs here
Returns the daily consumption in Wh. See the docs here
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`,
},
})
},
})
Enedis Data-Connect API provides access to energy consumption data, enabling users to analyze and optimize electricity usage. By integrating with this API on Pipedream, you can automate the collection of meter readings, track energy consumption patterns, and even develop personalized energy-saving strategies. Pipedream's serverless platform simplifies connecting Enedis Data-Connect with other apps, allowing you to set up complex workflows without managing infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
enedis: {
type: "app",
app: "enedis",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://ext.hml.api.enedis.fr/metering_data_dcmp/v5/daily_consumption_max_power`,
headers: {
Authorization: `Bearer ${this.enedis.$auth.oauth_access_token}`,
},
params: {
start: ` `,
end: ``,
usage_points_id: ``,
},
})
},
})