Use this app to create a Discord source that emits messages from your guild to a Pipedream workflow.
Queues a connection request to actively connect with a targeted LinkedIn profile. See the documentation
Queues a direct message that will be sent to the targeted profile. See the documentation
Queues a profile save action to store the targeted profile as a lead. 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 Dux Soup API enables users to automate interactions and manage leads on LinkedIn. Within Pipedream, you can harness this API to craft workflows that engage with your LinkedIn network, manage connections, and streamline your lead generation process. Automating tasks like sending connection requests, following up with contacts, and tracking profile visits can save valuable time and boost your LinkedIn marketing efforts.
// To use any npm package on Pipedream, just import it
import axios from "axios";
import jsSHA from "jssha";
export default defineComponent({
props: {
dux_soup: {
type: "app",
app: "dux_soup",
}
},
async run({ steps, $ }) {
const targeturl = `${this.dux_soup.$auth.target_url}/queue`;
const userid = `${this.dux_soup.$auth.user_id}`;
const auth_key = `${this.dux_soup.$auth.auth_key}`;
var shaObj = new jsSHA("SHA-1", "TEXT");
const timestamp = +new Date();
let commandrequestjsonbody = {
command: "visit",
targeturl,
userid: userid,
timestamp: timestamp,
params: {
profile: "",
}
}
commandrequestjsonbody = JSON.stringify(commandrequestjsonbody);
shaObj.setHMACKey(auth_key, "TEXT");
shaObj.update(commandrequestjsonbody);
var hmac = shaObj.getHMAC("B64");
const config = {
url: targeturl,
method: "POST",
headers: {
"X-Dux-Signature": hmac,
"Content-Type": "application/json"
},
data: commandrequestjsonbody
};
return (await axios(config)).data;
},
})