with Membervault 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.
MemberVault offers an innovative approach to engaging and understanding your audience through interactive content. With the MemberVault API, you can automate the management of users, products, and engagement data, ensuring seamless integration with your marketing and customer service tools. This capability opens up a world of possibilities for personalized interactions, targeted campaigns, and streamlined content delivery based on user behavior and preferences.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
membervault: {
type: "app",
app: "membervault",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.membervault.$auth.subdomain}.vipmembervault.com/api/get_courses`,
params: {
apikey: `${this.membervault.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})