TypeScript integration
import Js_genai from 'js-genai'; const client = new Js_genai({ accessToken: "YOUR_ACCESS_TOKEN" });
curl \
-H "Authorization: Bearer $ACCESS_TOKEN" \
https://pubsub.googleapis.com/v1beta2/{topic}curl \
-H "Authorization: Bearer $ACCESS_TOKEN" \
https://pubsub.googleapis.com/v1beta2/{subscription}curl \
-H "Authorization: Bearer $ACCESS_TOKEN" \
https://pubsub.googleapis.com/v1beta2/{project}/topics