Using js-genai with googleapis.com

TypeScript integration

✓ Official SDK
Install
npm install js-genai
Quick start
import Js_genai from 'js-genai';

const client = new Js_genai({ accessToken: "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
js-genai
TypeScript
API
googleapis.com
googleapis.com:fitness
At a glance
Language TypeScript
Endpoints13
Base URLhttps://fitness.googleapis.com/fitness/v1/users
✓ Official