with Dante AI and Stack Overflow for Teams?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dante_ai: {
type: "app",
app: "dante_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dante-ai.com/profile`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.dante_ai.$auth.api_key}`,
},
params: {
team_id: `${this.dante_ai.$auth.team_id}`,
},
})
},
})
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}`,
},
})
},
})