with BrandMentions and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
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}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})