with Labs64 NetLicensing 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 Labs64 NetLicensing API is a sophisticated software licensing service that enables you to manage product licenses and configurations seamlessly. Using Pipedream, you can tap into this power to automate license creation, validation, and tracking. This enables you to integrate licensing operations into your sales, deployment, and customer support workflows, ensuring consistent and automated management of software licenses across customer lifecycles.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
labs64_netlicensing: {
type: "app",
app: "labs64_netlicensing",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://go.netlicensing.io/core/v2/rest/product`,
headers: {
"Accept": `application/json`,
},
auth: {
username: `apiKey`,
password: `${this.labs64_netlicensing.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})