with Backendless 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.
Backendless is a visual app development platform that allows developers to create mobile and web apps without needing to manage the backend infrastructure. It offers features like database management, user authentication, real-time data, and serverless hosting. With the Backendless API on Pipedream, you can automate workflows, sync data across apps, process data triggers, and handle user actions in real-time. It's perfect for extending app capabilities, integrating with third-party services, and automating repetitive tasks.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
backendless: {
type: "app",
app: "backendless",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.backendless.$auth.subdomain}.backendless.app/api/users/${this.backendless.$auth.oauth_uid}`,
headers: {
Authorization: `Bearer ${this.backendless.$auth.oauth_access_token}`,
"Content-Type": `application/json`,
"user-token": `${this.backendless.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})