import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
workflowy: {
type: "app",
app: "workflowy",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://workflowy.com/api/v1/nodes`,
headers: {
Authorization: `Bearer ${this.workflowy.$auth.api_key}`,
},
params: {
parent_id: `inbox`,
},
})
},
})
WorkFlowy uses API keys for authentication. When you connect your WorkFlowy account, Pipedream securely stores the keys so you can easily authenticate to WorkFlowy APIs in both code and no-code steps.