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 sessions previously created.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://fitness.googleapis.com/fitness/v1/users/{userId}/sessions
Lists all data sources that are visible to the developer, using the OAuth sco…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://fitness.googleapis.com/fitness/v1/users/{userId}/dataSources
Returns the specified data source.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://fitness.googleapis.com/fitness/v1/users/{userId}/dataSources/{dataSourceId}
SDK on GitHub 📄 API Docs
SDK
go-genai
Go
API
googleapis.com
googleapis.com:fitness
At a glance
Language Go
Endpoints13
Base URLhttps://fitness.googleapis.com/fitness/v1/users
✓ Official