with BILL and Stack Overflow for Teams?
The BILL API enables automation of accounts payable and receivable processes. With this API on Pipedream, you can create workflows that streamline financial operations, sync invoices, and manage transactions. Pipedream's serverless platform allows you to connect BILL with various other apps to trigger actions based on events, ensuring seamless financial data handling.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bill: {
type: "app",
app: "bill",
}
},
async run({steps, $}) {
const data = {
"devKey": `${this.bill.$auth.developer_key}`,
"sessionId": `${this.bill.$auth.sessionId}`,
}
return await axios($, {
method: "post",
url: `https://${this.bill.$auth.environment}.bill.com/api/v2/GetSessionInfo.json`,
data,
})
},
})
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}`,
},
})
},
})