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 details about a device.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://cloudiot.googleapis.com/v1/{name}
Lists the last few versions of the device state in descending order (i.e.: ne…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://cloudiot.googleapis.com/v1/{name}/states
List devices in a device registry.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://cloudiot.googleapis.com/v1/{parent}/devices
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:cloudiot
At a glance
Language TypeScript
Endpoints16
Base URLhttps://cloudiot.googleapis.com
✓ Official