with Issue Badge and xAI?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
issue_badge: {
type: "app",
app: "issue_badge",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://app.issuebadge.com/api/v1/validate-key`,
headers: {
Authorization: `Bearer ${this.issue_badge.$auth.api_key}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
x_ai: {
type: "app",
app: "x_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.x.ai/v1/models`,
headers: {
Authorization: `Bearer ${this.x_ai.$auth.api_key}`,
}
})
},
})