with ServerAvatar and Stack Overflow for Teams?
Add a new application domain for the application. See the docs here
The ServerAvatar API lets you manage and automate server operations, catering to developers and system admins who seek efficiency in server management tasks. Whether it's deploying new sites, keeping tabs on server health, or automating server updates, the API opens a window to streamline such processes with your own systems or third-party apps. With Pipedream, you can connect ServerAvatar to other services, triggering actions in one app based on events from ServerAvatar, or vice versa.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
serveravatar: {
type: "app",
app: "serveravatar",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.serveravatar.com/teams`,
headers: {
Authorization: `Bearer ${this.serveravatar.$auth.api_key}`,
},
})
},
})
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}`,
},
})
},
})