with Ringba 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 Ringba API provides programmatic access to call tracking and management functionalities, allowing users to automate their telephony operations, analyze call data, and streamline caller experiences. By leveraging the Ringba API on Pipedream, you can create custom serverless workflows that respond dynamically to call events, synchronize call details with CRM systems, generate real-time analytics, and optimize marketing efforts based on call patterns.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ringba: {
type: "app",
app: "ringba",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.ringba.com/v2/ringbaaccounts`,
headers: {
Authorization: `Bearer ${this.ringba.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})