with Kyvio 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 Kyvio API allows for automation and integration of Kyvio's suite of tools for building online businesses, including smart memberships, funnels, and email marketing. By leveraging the Kyvio API on Pipedream, you can create automated workflows to streamline operations such as updating member details, managing subscriptions, tracking email campaigns, and more. Pipedream's serverless platform enables you to connect Kyvio with hundreds of other apps to further enhance your business processes with event-driven actions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kyvio: {
type: "app",
app: "kyvio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.kyvio.$auth.subdomain}.kyvio.com/api/v1/subscribers`,
headers: {
Authorization: `Bearer ${this.kyvio.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})