import { redashClient } from 'redash-js-client';
export default defineComponent({
props: {
redash: {
type: "app",
app: "redash",
}
},
async run({ steps, $ }) {
const client = redashClient({
host: this.redash.$auth.api_url,
token: this.redash.$auth.api_key
});
return await client.query.getMany();
},
})
Redash uses API keys for authentication. When you connect your Redash account, Pipedream securely stores the keys so you can easily authenticate to Redash APIs in both code and no-code steps.