Get marketing clarity with CallTracking and LeadTracking.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
whatconverts: {
type: "app",
app: "whatconverts",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.whatconverts.com/api/v1/leads`,
auth: {
username: `${this.whatconverts.$auth.api_token}`,
password: `${this.whatconverts.$auth.api_secret}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})