with Paylocity and Mailosaur?
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: {
mailosaur: {
type: "app",
app: "mailosaur",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://mailosaur.com/api/servers`,
auth: {
username: `api`,
password: `${this.mailosaur.$auth.api_key}`,
},
})
},
})