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