with HelpDesk and Current RMS?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
helpdesk: {
type: "app",
app: "helpdesk",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.helpdesk.com/v1/agents`,
headers: {
"content-type": `application/json`,
},
auth: {
username: `${this.helpdesk.$auth.account_id}`,
password: `${this.helpdesk.$auth.access_token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
current_rms: {
type: "app",
app: "current_rms",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.current-rms.com/api/v1/members`,
headers: {
Authorization: `Bearer ${this.current_rms.$auth.oauth_access_token}`,
"x-subdomain": `${this.current_rms.$auth.subdomain}`,
},
})
},
})