with Beaconstac 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 Beaconstac API allows you to leverage proximity marketing through beacon and QR code technology. By integrating with Beaconstac, you can automate the creation and management of QR codes and beacons, track analytics, and engage users based on location. This aligns perfectly with Pipedream's capabilities, where you can create complex workflows to connect Beaconstac with other apps for efficient, real-time automation.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
beaconstac: {
type: "app",
app: "beaconstac",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.beaconstac.com/api/2.0/qrcodes/`,
headers: {
"Authorization": `Token ${this.beaconstac.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})