Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
Retrieves geographical coordinates for a given IP address. See the documentation
Calculates a route between two sets of latitude and longitude points. See the documentation
Retrieves geocoding information for a given address. See the documentation
Send a simple or structured message (using embeds) to a Discord channel
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`,
},
})
},
})
The Geoapify API offers a suite of location-based services, including geocoding, routing, and map data. With Pipedream, you can leverage these services to create serverless workflows that react to various triggers, transform and analyze location data, and integrate with other APIs or services. Whether you're building apps that require address lookup, route optimization, or location intelligence, integrating Geoapify with Pipedream enables you to automate and scale these operations efficiently.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
geoapify: {
type: "app",
app: "geoapify",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.geoapify.com/v1/geocode/search`,
params: {
text: `44 Montgomery St., San Francisco, CA 94104`,
format: `json`,
apiKey: `${this.geoapify.$auth.api_key}`,
},
})
},
})