with All Voice Lab and Paylocity?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
all_voice_lab: {
type: "app",
app: "all_voice_lab",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.all_voice_lab.$auth.api_url}/v1/balance/get_balance`,
headers: {
"ai-api-key": `${this.all_voice_lab.$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}`,
},
})
},
})