with Loomio 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 Loomio API empowers you to automate your collaborative decision-making processes, integrating your group discussions, proposals, and decisions with other apps and services. By leveraging Pipedream's capabilities, you can seamlessly connect Loomio with hundreds of other applications, creating custom workflows that trigger actions based on events in Loomio, such as new discussions, votes, or comments. This enables you to streamline communication, enhance project management, and foster transparent governance.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
loomio: {
type: "app",
app: "loomio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.loomio.org/api/b1/memberships`,
params: {
api_key: `${this.loomio.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})