With CircleCI's API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
circleci: {
type: "app",
app: "circleci",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://circleci.com/api/v1.1/me`,
params: {
"circle-token": `${this.circleci.$auth.token}`,
},
})
},
})
CircleCI uses API keys for authentication. When you connect your CircleCI account, Pipedream securely stores the keys so you can easily authenticate to CircleCI APIs in both code and no-code steps.
An API token can be created using the account dashboard. More info via API Overview.