with Daktela and HeyReach?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
daktela: {
type: "app",
app: "daktela",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.daktela.$auth.instance_url}/api/v6/whoim.json`,
params: {
accessToken: `${this.daktela.$auth.access_token}`,
},
})
},
})
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,
})
},
})