with Perigon 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 Perigon API enables the creation and management of complex data relationships, allowing for the automation of data-driven processes. With this API, you can streamline data synchronization, manage master data, and enhance business intelligence by connecting Perigon's data capabilities with various apps and services. Automating workflows with the Perigon API on Pipedream can lead to increased efficiency by reducing manual data handling, ensuring data accuracy, and providing actionable insights through connected systems.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
perigon: {
type: "app",
app: "perigon",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.goperigon.com/v1/all`,
params: {
apiKey: `${this.perigon.$auth.apiKey}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})