import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
leverly: {
type: "app",
app: "leverly",
}
},
async run({steps, $}) {
const data = {
"firstName": `Sergio`,
"Phone1": `+123456789`,
}
return await axios($, {
method: "post",
url: `https://app.leverly.com/main/ingestor/process`,
headers: {
"Content-Type": `application/x-www-form-urlencoded`,
},
params: {
AccountID: `${this.leverly.$auth.account_id}`,
},
data,
})
},
})
Leverly uses API keys for authentication. When you connect your Leverly account, Pipedream securely stores the keys so you can easily authenticate to Leverly APIs in both code and no-code steps.