with Ryver 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 Ryver API allows you to automate interactions with the Ryver platform, a tool for team communication and task management. By leveraging the API on Pipedream, you can create custom workflows that respond to events in Ryver, send messages, manage tasks, users, and teams, or integrate with other services to extend Ryver's functionality. With Pipedream's serverless platform, you can design scalable and maintenance-free automations that react in real-time to your business needs.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ryver: {
type: "app",
app: "ryver",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.ryver.$auth.domain}.ryver.com/api/1/odata.svc/users`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
},
auth: {
username: `${this.ryver.$auth.email}`,
password: `${this.ryver.$auth.password}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})