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")
Get traffic statistics for a domain on a specific date. Returns PERMISSION_DE…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmailpostmastertools.googleapis.com/v1beta1/{name}
Lists the domains that have been registered by the client. The order of domai…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmailpostmastertools.googleapis.com/v1beta1/domains
List traffic statistics for all available days. Returns PERMISSION_DENIED if …
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmailpostmastertools.googleapis.com/v1beta1/{parent}/trafficStats
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:gmailpostmastertools
At a glance
Language Go
Endpoints3
Base URLhttps://gmailpostmastertools.googleapis.com
✓ Official