import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
outline: {
type: "app",
app: "outline",
}
},
async run({steps, $}) {
const data = {
"offset": `1`,
"limit": `20`,
"sort": `updatedAt`,
"direction": `DESC`,
}
return await axios($, {
method: "post",
url: `https://app.getoutline.com/api/users.list`,
headers: {
Authorization: `Bearer ${this.outline.$auth.api_key}`,
},
data,
})
},
})
Outline uses API keys for authentication. When you connect your Outline account, Pipedream securely stores the keys so you can easily authenticate to Outline APIs in both code and no-code steps.