A TypeScript package for communicating with the Unity Releases API
- Automatically generated API client from the latest OpenAPI specification.
- Fully typed models and methods for every endpoint.
- Designed for use in a Node.js environment.
npm install @rage-against-the-pixel/unity-releases-api
import dotenv from 'dotenv';
import { UnityReleasesClient } from 'unity-releases-api';
async function main() {
dotenv.config();
const client = new UnityReleasesClient();
const { data: response, error } = await client.api.ReleaseService.getUnityReleases();
if (error) {
console.error('Error fetching releases:', error);
} else {
console.log(JSON.stringify(response, null, 2));
}
}
main();