with BrandMentions and Leverly?
The BrandMentions API lets you monitor and engage with online conversations about your brand in real-time. It provides insights into brand mentions across various channels, including social media, blogs, forums, and news sites. Pipedream serves as a powerful platform, enabling you to build automated workflows that respond to brand mentions, giving you the ability to track sentiment, identify influencers, and manage your brand’s online reputation efficiently.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
brandmentions: {
type: "app",
app: "brandmentions",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.brandmentions.com/command.php`,
params: {
command: `ListProjects`,
api_key: `${this.brandmentions.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
leverly: {
type: "app",
app: "leverly",
}
},
async run({steps, $}) {
const data = {
"firstName": `Sergio`,
"Phone1": `+123456789`,
}
return await axios($, {
method: "post",
url: `https://app.leverly.com/main/ingestor/process`,
headers: {
"Content-Type": `application/x-www-form-urlencoded`,
},
params: {
AccountID: `${this.leverly.$auth.account_id}`,
},
data,
})
},
})