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 a repo.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://sourcerepo.googleapis.com/v1/{name}
Returns all repos belonging to a project. The sizes of the repos are not set …
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://sourcerepo.googleapis.com/v1/{name}/repos
Returns the Cloud Source Repositories configuration of the project.
curl \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  https://sourcerepo.googleapis.com/v1/{name}/config
SDK on GitHub 📄 API Docs
SDK
js-genai
TypeScript
API
googleapis.com
googleapis.com:sourcerepo
At a glance
Language TypeScript
Endpoints11
Base URLhttps://sourcerepo.googleapis.com
✓ Official