with Paylocity and Maileroo?
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
maileroo: {
type: "app",
app: "maileroo",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.maileroo.$auth.api_key}`,
"email_address": `sergio@pipedream.com`,
}
return await axios($, {
method: "post",
url: `https://verify.maileroo.net/check`,
data,
})
},
})