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" });
Gets all the devices associated with the given third-party user. The third-pa…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://homegraph.googleapis.com/v1/devices:sync
Gets the current states in Home Graph for the given set of the third-party us…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://homegraph.googleapis.com/v1/devices:query
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:homegraph
At a glance
Language TypeScript
Endpoints5
Base URLhttps://homegraph.googleapis.com
✓ Official