Url to twinfinity. Example: https://bim.demo.projektstruktur.se or https://bim.demo.projektstruktur.se/sites/portal/projects/projectA
Optionaloptions: TwinfinityApiOptionsReadonlybaseReadonlylayersAccess to layer operations.
ReadonlymapAccess to MapBox operations.
ReadonlymessagesAccess to message operations.
ReadonlysettingsAccess to settings operations.
ReadonlytwinsAccess to twin operations.
ReadonlyuploadAccess to upload operations.
Hostname of baseUrl.
StaticcreateCreates a new instance of BimTwinfinityApiClient by detecting available root URLs for the current user.
Hostname of the Twinfinity installation. If the hostname does not start with bim. it will be added automatically.
Its ok to pass a full URL too, but only the hostname is used. Scheme is always set to https.
Optionaloptions: TwinfinityApiOptionsOptional session used to get authorization header for requests.
A promise that resolves to a new instance of BimTwinfinityApiClient. If no root URLs are detected, the promise resolves to undefined.
undefined indicates that the user is not authorized or does not have access to any Twinfinity resources.
StaticdetectDetects the root URLs available for the current user given a base URL. The result depends on type of Twinfinity installation, how its configured and which resources the user has access to. The method will test the following root URLs:
baseUrl.The base URL to detect root URLs for.
Optionaloptions: TwinfinityApiOptionsOptional session used to get authorization header for requests.
A promise that resolves to an array of detected root URLs.
Constructor