with Scrapeless and Paylocity?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
scrapeless: {
type: "app",
app: "scrapeless",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.scrapeless.com/api/v1/me`,
headers: {
"x-api-token": `${this.scrapeless.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
paylocity: {
type: "app",
app: "paylocity",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.paylocity.$auth.api_url}/api/v2/companies/1PIPEDRM1/employees`,
headers: {
Authorization: `Bearer ${this.paylocity.$auth.oauth_access_token}`,
},
})
},
})