with Tilda 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 Tilda API on Pipedream allows you to programmatically interact with your Tilda websites, enabling you to retrieve project data, export pages or content, and sync information between Tilda and other services. By leveraging Pipedream's capabilities, you can automate content updates, streamline publication workflows, and connect Tilda with a myriad of third-party applications for enhanced productivity and dynamic content management.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tilda: {
type: "app",
app: "tilda",
}
},
async run({steps, $}) {
return await axios($, {
url: `http://api.tildacdn.info/v1/getprojectslist/`,
params: {
publickey: `${this.tilda.$auth.public_key}`,
secretkey: `${this.tilda.$auth.secret_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})