Visually build on your tech stack. Drag and drop to build pages and sections within your framework, using your components.
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 Builder.io API offers a powerful way to manage and deliver content across any platform with structured data. Using Pipedream, you can automate content creation, update workflows, and sync content across various applications. Pipedream's serverless platform allows you to connect Builder.io to hundreds of other services without writing complex code, triggering actions on events or on a schedule.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
builder_io: {
type: "app",
app: "builder_io",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://cdn.builder.io/api/v2/content/page`,
params: {
apiKey: `${this.builder_io.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})