import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
stackby: {
type: "app",
app: "stackby",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://stackby.com/api/v1/rowlist/${this.stackby.$auth.stack_id}/${this.stackby.$auth.table_id}`,
headers: {
"api-key": `${this.stackby.$auth.api_key}`,
"content-type": `application/json`,
},
})
},
})
stackby uses API keys for authentication. When you connect your stackby account, Pipedream securely stores the keys so you can easily authenticate to stackby APIs in both code and no-code steps.
To retrieve your API key,