With the Alegra API, you can build a variety of applications and integrations. Here are some examples:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alegra: {
type: "app",
app: "alegra",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.alegra.com/api/v1/users/self`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
},
auth: {
username: `${this.alegra.$auth.user_email}`,
password: `${this.alegra.$auth.access_token}`,
},
})
},
})
Alegra uses API keys for authentication. When you connect your Alegra account, Pipedream securely stores the keys so you can easily authenticate to Alegra APIs in both code and no-code steps.
To retrieve your user_email
and access_token
, navigate to the Alegra API configuration page.