import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
lamini: {
type: "app",
app: "lamini",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.lamini.ai/v2/classifier/projects`,
headers: {
Authorization: `Bearer ${this.lamini.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
Lamini uses API keys for authentication. When you connect your Lamini account, Pipedream securely stores the keys so you can easily authenticate to Lamini APIs in both code and no-code steps.