import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pencil_spaces: {
type: "app",
app: "pencil_spaces",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.pencil_spaces.$auth.api_url}users`,
headers: {
Authorization: `Bearer ${this.pencil_spaces.$auth.api_key}`,
},
})
},
})
Pencil Spaces uses API keys for authentication. When you connect your Pencil Spaces account, Pipedream securely stores the keys so you can easily authenticate to Pencil Spaces APIs in both code and no-code steps.