Next-generation software for garment decorators and promotional product printers.
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 YoPrint API offers a suite of functionalities to streamline printing business operations, allowing users to automate tasks related to order management, customer interactions, and production processes. By integrating YoPrint with Pipedream, businesses can create automated workflows to connect their print management with other services, enhancing efficiency and data consistency. With Pipedream's serverless platform, you can trigger actions based on various events, process data, and integrate with countless other apps.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
yoprint: {
type: "app",
app: "yoprint",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://secure.yoprint.com/v1/api/store/${this.yoprint.$auth.team_id}/setting/user`,
headers: {
"Authorization": `${this.yoprint.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})