Using go-genai with googleapis.com

Go integration

✓ Official SDK
Install
go get github.com/googleapis/go-genai
Quick start
import "go-genai"

// Initialize client
client := go-genai.NewClient("YOUR_ACCESS_TOKEN")
Lists the drafts in the user's mailbox.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/drafts
Lists all labels in the user's mailbox.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/labels
Lists the history of all changes to the given mailbox. History results are re…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmail.googleapis.com/gmail/v1/users/{userId}/history
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:gmail
At a glance
Language Go
Endpoints79
Base URLhttps://gmail.googleapis.com
✓ Official