import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
brillium: {
type: "app",
app: "brillium",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.brillium.$auth.api_url}/api/Accounts`,
auth: {
username: `ASSESSMENTS-API`,
password: `${this.brillium.$auth.api_password}${this.brillium.$auth.security_token}`,
},
})
},
})
Brillium uses API keys for authentication. When you connect your Brillium account, Pipedream securely stores the keys so you can easily authenticate to Brillium APIs in both code and no-code steps.
To retrieve your API Password, Security Token, API Key and API URL,
In this screen you'll be able to set your API Password, generate your Security Token and API Key. As of the API URL you'll see displayed a Base URI, from which your API URL is derived: Enter https://1234.onlinetests.app
in the API URL field bellow if your Base URI is https://1234.onlinetests.app/api/