with Ritekit 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.
RiteKit API offers a suite of tools to enrich social media engagement. Through Pipedream, you can automate hashtag suggestions, generate images for social posts, and retrieve analytics. This integration can power up your social media strategy by automating tasks like crafting posts with trending hashtags, scheduling content with optimized images, and analyzing performance without manual effort.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ritekit: {
type: "app",
app: "ritekit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ritekit.com/v1/stats/multiple-hashtags`,
params: {
tags: `php`,
client_id: `${this.ritekit.$auth.client_id}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})