Using java-genai with googleapis.com

Java integration

✓ Official SDK
Install
# Maven: see https://github.com/googleapis/java-genai
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
java-genai
Java
API
googleapis.com
googleapis.com:fitness
At a glance
Language Java
Endpoints13
Base URLhttps://fitness.googleapis.com/fitness/v1/users
✓ Official