with HeyReach and Order Sender?
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,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
order_sender: {
type: "app",
app: "order_sender",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://business.ordersender.com/api/v1/op/check`,
headers: {
"accept": `*/*`,
},
params: {
cod: `${this.order_sender.$auth.company_code}`,
token: `${this.order_sender.$auth.api_token}`,
},
})
},
})