TypeScript / JavaScript
npm install @tritonium/api-client@2.1.1
Funktionen
Vollständige TypeScript-Unterstützung mit kompletten Typdefinitionen Node.js 18 oder später, ohne Runtime-Abhängigkeiten Tree-Shaking-fähige ESM- und CommonJS-Builds
import { configureApiKey, AppsService, ReviewsService } from '@tritonium/api-client';
configureApiKey(process.env.TRITONIUM_API_KEY!);
const { apps = [] } = await AppsService.getApps();
if (apps.length === 0) throw new Error('Connect an app in the Tritonium dashboard first.');
const { reviews = [] } = await ReviewsService.getAppReviews(apps[0].app_uuid!, 20);