with Bridge 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 Bridge API by Dandelion provides text analysis through natural language processing, enabling you to extract meaning, categorize content, and understand sentiments in large volumes of text. Integrating Bridge with Pipedream opens a realm of possibilities for automating content analysis across various apps, aiding in decision making, content organization, and customer feedback analysis.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bridge: {
type: "app",
app: "bridge",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bridgeapi.io/v2/banks`,
headers: {
"Client-Id": `${this.bridge.$auth.client_id}`,
"Client-Secret": `${this.bridge.$auth.client_secret}`,
"Bridge-Version": `2021-06-01`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})