With the Gitea API, you can:
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gitea: {
type: "app",
app: "gitea",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.gitea.$auth.gitea_url}/api/v1/user`,
headers: {
Authorization: `Bearer ${this.gitea.$auth.apiKey}`,
},
})
},
})
Gitea uses API keys for authentication. When you connect your Gitea account, Pipedream securely stores the keys so you can easily authenticate to Gitea APIs in both code and no-code steps.
An API key token is created via the Gitea installation’s web interface: Settings | Applications | Generate New Token.