Using gitea-go-sdk with gitea.io

Go integration

Install

go get github.com/OpenCSGs/gitea-go-sdk

Quick start

import "gitea-go-sdk"

// Initialize client
client := gitea-go-sdk.NewClient("YOUR_API_KEY")
Get list of organizations
curl \
  # append ?access_token=$API_KEY to the URL \
  /orgs
Get the authenticated user
curl \
  # append ?access_token=$API_KEY to the URL \
  /user
Returns the version of the Gitea application
curl \
  # append ?access_token=$API_KEY to the URL \
  /version
SDK on GitHub 📄 API Docs
SDK
gitea-go-sdk
Go
API
gitea.io
gitea.io

At a glance

Language Go
Endpoints325