with Better Proposals 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 Better Proposals API offers a powerful way to automate proposal creation and management tasks. With it, you can programmatically generate, send, and track business proposals, streamlining the sales process and integrating seamlessly with CRM systems. By leveraging Pipedream’s capabilities, you can connect Better Proposals to a multitude of other apps to trigger actions based on proposal activities, sync data, or even automate follow-ups, thereby enhancing the efficiency of your sales workflow.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
better_proposals: {
type: "app",
app: "better_proposals",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.betterproposals.io/settings/`,
headers: {
"Bptoken": `${this.better_proposals.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})