import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
noor: {
type: "app",
app: "noor",
}
},
async run({steps, $}) {
const data = {
"spaceId": `${this.noor.$auth.space_id}`,
}
return await axios($, {
method: "post",
url: `https://sun.noor.to/api/v0/getSpaceMembers`,
headers: {
Authorization: `Bearer ${this.noor.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})
Noor uses API keys for authentication. When you connect your Noor account, Pipedream securely stores the keys so you can easily authenticate to Noor APIs in both code and no-code steps.
To retrieve your API Key and Space ID