with DataSet 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 DataSet API enables you to manage and analyze large datasets. With Pipedream's integration, you can automate data ingestion, transformation, and analysis, create serverless workflows that respond to data events, and connect with other apps to enrich and utilize your datasets. Utilize Pipedream's serverless platform to trigger workflows, perform actions based on DataSet events, and orchestrate complex data processes with minimal setup.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dataset: {
type: "app",
app: "dataset",
}
},
async run({steps, $}) {
const data = {
"token": `${this.dataset.$auth.access_key}`,
}
return await axios($, {
method: "post",
url: `https://app.scalyr.com/api/listUsers`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})