import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
predictleads: {
type: "app",
app: "predictleads",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://predictleads.com/api/v3/companies/pipedream.com`,
params: {
api_token: `${this.predictleads.$auth.api_token}`,
api_key: `${this.predictleads.$auth.api_key}`,
},
})
},
})
PredictLeads uses API keys for authentication. When you connect your PredictLeads account, Pipedream securely stores the keys so you can easily authenticate to PredictLeads APIs in both code and no-code steps.