With the Buildkite API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
buildkite: {
type: "app",
app: "buildkite",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.buildkite.com/v2/user`,
headers: {
Authorization: `Bearer ${this.buildkite.$auth.api_token}`,
},
})
},
})
Returns basic details about the user account that sent the request
BuildKite uses API keys for authentication. When you connect your BuildKite account, Pipedream securely stores the keys so you can easily authenticate to BuildKite APIs in both code and no-code steps.
Get your API token here