with Api Void 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.
With the Api Void API, you can build apps that:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
api_void: {
type: "app",
app: "api_void",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://endpoint.apivoid.com/iprep/v1/pay-as-you-go/`,
params: {
key: `${this.api_void.$auth.api_key}`,
ip: `{enter_ip_here}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})