with Traffit and neetoDesk?
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: {
neetodesk: {
type: "app",
app: "neetodesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.neetodesk.$auth.subdomain}.neetodesk.com/api/v1/public/tickets`,
headers: {
"x-api-key": `${this.neetodesk.$auth.api_key}`,
},
})
},
})