with Traffit and Paylocity?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
traffit: {
type: "app",
app: "traffit",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.traffit.$auth.subdomain}.traffit.com/api/integration/v2/users/`,
headers: {
Authorization: `Bearer ${this.traffit.$auth.oauth_access_token}`,
"x-request-page-size": `5`,
"x-request-current-page": `1`,
},
})
},
})
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}`,
},
})
},
})