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" });
Fetches the representation of an existing Project.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://dns.googleapis.com/dns/v2/projects/{project}/locations/{location}
Enumerates all Policies associated with a project.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://dns.googleapis.com/dns/v2/projects/{project}/locations/{location}/policies
Enumerates ManagedZones that have been created but not yet deleted.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://dns.googleapis.com/dns/v2/projects/{project}/locations/{location}/managedZones
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:dns
At a glance
Language TypeScript
Endpoints40
Base URLhttps://dns.googleapis.com
✓ Official