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