with SmashSend and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Create a new contact or update an existing contact. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
smashsend: {
type: "app",
app: "smashsend",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.smashsend.com/v1/api-keys/check`,
headers: {
Authorization: `Bearer ${this.smashsend.$auth.api_key}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})