import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
elevio: {
type: "app",
app: "elevio",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.elev.io/v1/articles`,
headers: {
Authorization: `Bearer ${this.elevio.$auth.api_token}`,
"x-api-key": `${this.elevio.$auth.api_key}`,
},
})
},
})
Elevio uses API keys for authentication. When you connect your Elevio account, Pipedream securely stores the keys so you can easily authenticate to Elevio APIs in both code and no-code steps.
To generate your API key and your JWT (JSON Web "Token") go to the API Keys page of the Elevio dashboard.