with Agenty 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.
Agenty is a powerful scraping and automation tool that enables users to extract and transform data from web pages or documents. Using the Agenty API with Pipedream, you can automate the ingestion of this data, orchestrate its flow to other applications, and build complex workflows. Whether you're aggregating content, monitoring prices, or extracting data for analysis, the Agenty API facilitates these tasks by providing structured data as an output, which you can then process with Pipedream's serverless platform.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
agenty: {
type: "app",
app: "agenty",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.agenty.com/v1/team`,
params: {
apikey: `${this.agenty.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})