with LIME Go 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.
LIME Go is a smart CRM tailored for B2B sales teams, designed to streamline customer relationship management with features like lead generation, deal tracking, and proactive suggestions for best next steps. Using the LIME Go API with Pipedream allows you to automate interactions with your CRM data, sync with other business tools, and tailor your sales process with real-time data flows. Create workflows that trigger actions based on CRM events, enrich contact data, or synchronize sales activities across platforms, all with minimal code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lime_go: {
type: "app",
app: "lime_go",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lime-go.com/v1/ping`,
headers: {
"Authorization": `go-api: ${this.lime_go.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})