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