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