with Mediatoolkit 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.
Mediatoolkit is a powerful media monitoring tool that tracks online mentions of your brand or keywords across various platforms, helping you stay on top of public perception and industry trends. Using the Mediatoolkit API on Pipedream, you can automate reactions to these mentions, aggregate data for analytics, and integrate notifications into other apps to keep your team informed. This enables real-time media monitoring, sentiment analysis, and enhances your ability to respond swiftly to the social sentiments affecting your brand or market.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mediatoolkit: {
type: "app",
app: "mediatoolkit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.mediatoolkit.com/me/organizations`,
params: {
access_token: `${this.mediatoolkit.$auth.access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})