with Gift Up! 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 Gift Up! API provides a powerful platform for managing gift cards and vouchers. Through Pipedream, you can automate gift card creation, distribution, and tracking, making it a breeze to handle bulk operations, integrate with e-commerce platforms, or even trigger personalized marketing campaigns. The API’s capabilities also include redeeming gift cards, updating their balance, and retrieving detailed information for customer support.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gift_up: {
type: "app",
app: "gift_up",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.giftup.app/ping`,
headers: {
Authorization: `Bearer ${this.gift_up.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})