with BuildKite and Alt Text Lab?
Returns basic details about the user account that sent the request
The BuildKite API is a powerhouse for automating your continuous integration and delivery (CI/CD) pipelines. With it, you can trigger builds, get information on agents and artifacts, and manage your organization's setup programmatically. Pipedream leverages this API to connect BuildKite with a myriad of other services, allowing for customized workflows that go beyond the standard CI/CD process. You can automate notifications, synchronize with project management tools, or even gather analytics to optimize your build processes.
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}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
alt_text_lab: {
type: "app",
app: "alt_text_lab",
}
},
async run({steps, $}) {
const data = {
"imageUrl": `https://pipedream.com/s.v0/app_13GhYE/logo/orig`,
}
return await axios($, {
method: "post",
url: `https://app.alttextlab.com/api/v1/alt-text/generate`,
headers: {
"x-api-key": `${this.alt_text_lab.$auth.api_key}`,
},
data,
})
},
})