with Sage CRM and Stack Overflow for Teams?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sage_crm: {
type: "app",
app: "sage_crm",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.sage_crm.$auth.server}/sdata/${this.sage_crm.$auth.install_name}j/sagecrm2/-/Person`,
headers: {
"content-type": `application/json`,
},
auth: {
username: `${this.sage_crm.$auth.username}`,
password: `${this.sage_crm.$auth.password}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
stack_overflow_for_teams: {
type: "app",
app: "stack_overflow_for_teams",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.stackoverflowteams.com/2.3/users`,
headers: {
"x-api-access-token": `${this.stack_overflow_for_teams.$auth.api_access_token}`,
},
params: {
order: `desc`,
team: `${this.stack_overflow_for_teams.$auth.team_slug}`,
},
})
},
})