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 Network Connectivity Center spoke.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://networkconnectivity.googleapis.com/v1/{name}
Lists the Network Connectivity Center hubs associated with a given project.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://networkconnectivity.googleapis.com/v1/{parent}/hubs
Lists the Network Connectivity Center spokes in a specified project and locat…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://networkconnectivity.googleapis.com/v1/{parent}/spokes
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:networkconnectivity
At a glance
Language TypeScript
Endpoints15
Base URLhttps://networkconnectivity.googleapis.com
✓ Official