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" });
Returns information about the authenticated user.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://shoppingcontent.googleapis.com/content/v2.1/accounts/authinfo
Lists CSS domains affiliated with a CSS group.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://shoppingcontent.googleapis.com/content/v2.1/{cssGroupId}/csses
Lists the orders in your Merchant Center account.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://shoppingcontent.googleapis.com/content/v2.1/{merchantId}/orders
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:content

At a glance

Language TypeScript
Endpoints175
Base URLhttps://shoppingcontent.googleapis.com/content/v2.1
✓ Official