Reference·TypeScript SDK · @bimworks/sdkTypeScript

InfoApi

TypeScript SDK: the Info operations, 1 method, each with its parameters, result and a complete example.

TypeScript SDK · @bimworks/sdk · class · 1 method

General information about the instance

Construct it with the client of the connect step: new InfoApi(client). Each method is one operation of the API part, where it runs on its page.

MethodOperationDescription
getApplicationVersionGetApplicationVersionThe BIM.works version of the instance

getApplicationVersion#

TypeScript#
getApplicationVersion(): Promise<GetApplicationVersion200Response>

The BIM.works version of the instance. The version of BIM.works the instance runs, to check compatibility. No credential needed.

OperationGetApplicationVersion · POST /openapi/info/GetApplicationVersion
Scopenone: callable before logging in

Parameters#

None: the operation takes no request.

Returns#

GetApplicationVersion200Response — The version

Example#

TypeScript#
import { Configuration, GetApplicationVersion200ResponseToJSON, InfoApi } from "@bimworks/sdk";

// 1. Connect to BIM.works (GetApplicationVersion needs no login)
const client = new Configuration({ basePath: "https://bim.works/openapi" });

// 2. The request
// (GetApplicationVersion takes no request)

// 3. The call
const result = await new InfoApi(client).getApplicationVersion();

// 4. The result
console.log(JSON.stringify(GetApplicationVersion200ResponseToJSON(result), null, 2));