import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sperse: {
type: "app",
app: "sperse",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.sperse.com/api/services/Platform/User/GetUsers`,
headers: {
"accept": `application/json;odata.metadata=minimal;odata.streaming=true`,
"api-key": `${this.sperse.$auth.api_key}`,
},
})
},
})
Sperse uses API keys for authentication. When you connect your Sperse account, Pipedream securely stores the keys so you can easily authenticate to Sperse APIs in both code and no-code steps.