with Widgetform and Paylocity?
Emit new event when a form submission is received. See the documentation
Retrieves the 10 most recent submissions. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
widgetform: {
type: "app",
app: "widgetform",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://usewidgetform.com/api/v1/hooks/zapier/user`,
headers: {
"x-api-key": `${this.widgetform.$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}`,
},
})
},
})