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" });
Get traffic statistics for a domain on a specific date. Returns PERMISSION_DE…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmailpostmastertools.googleapis.com/v1beta1/{name}
Lists the domains that have been registered by the client. The order of domai…
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmailpostmastertools.googleapis.com/v1beta1/domains
List traffic statistics for all available days. Returns PERMISSION_DENIED if …
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://gmailpostmastertools.googleapis.com/v1beta1/{parent}/trafficStats
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:gmailpostmastertools
At a glance
Language TypeScript
Endpoints3
Base URLhttps://gmailpostmastertools.googleapis.com
✓ Official