with Bruzu 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 Bruzu API enables dynamic image generation, allowing for the creation of personalized images with text overlay, custom graphics, and various design elements. These capabilities can be harnessed in serverless workflows within Pipedream to automate marketing campaigns, personalize user engagement, and streamline content creation. By leveraging Pipedream's integration platform, Bruzu's API can be connected to a myriad of services to enrich CRM data, augment social media posts, or create on-the-fly images for e-commerce products.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bruzu: {
type: "app",
app: "bruzu",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://img.bruzu.com/`,
params: {
template: `15`,
"top.text": `Reminder`,
"middle.text": `This%2520too%2520shall%2520pass`,
"bottom.text": `OK`,
"": ``,
"": ``,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})