import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
rhombus: {
type: "app",
app: "rhombus",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://api2.rhombussystems.com/api/org/getOrgV2`,
headers: {
"x-auth-apikey": `${this.rhombus.$auth.api_token}`,
"x-auth-scheme": `api-token`,
"content-type": `application/json`,
},
})
},
})
Rhombus uses API keys for authentication. When you connect your Rhombus account, Pipedream securely stores the keys so you can easily authenticate to Rhombus APIs in both code and no-code steps.