import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
heyreach: {
type: "app",
app: "heyreach",
}
},
async run({steps, $}) {
const data = {
"offset": `0`,
"keyword": `your_account_name`,
"limit": `10`,
}
return await axios($, {
method: "post",
url: `https://api.heyreach.io/api/public/li_account/GetAll`,
headers: {
"x-api-key": `${this.heyreach.$auth.api_key}`,
},
data,
})
},
})
HeyReach uses API keys for authentication. When you connect your HeyReach account, Pipedream securely stores the keys so you can easily authenticate to HeyReach APIs in both code and no-code steps.