with Amplifier 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 Amplifier API enables customized fulfillment solutions, including on-demand production and drop-shipping for a variety of products. With this API, you can seamlessly integrate Amplifier's capabilities into your e-commerce platforms, manage inventory, track orders, and handle customer service inquiries with ease. Automating these processes with Pipedream can dramatically increase efficiency, reduce errors, and save time.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
amplifier: {
type: "app",
app: "amplifier",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.amplifier.com/items`,
auth: {
username: `${this.amplifier.$auth.api_key}`,
password: ``,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})