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