Situm SDK JS
    Preparing search index...

    Class SitumSDK

    Main class that exports different domains from the Situm REST APIs, to initialize it just pass your authentication parameters.

    To fetch information just use any of the domains (cartography, realtime, user, ...) and use the methods available in it.

    import Situm from '@situm/sdk-js';

    const situm = new SitumSDK({
    auth: {
    apikey: 'your-api-key',
    },
    };

    const buildings: Promise<readonly BuildingListElement[]> = situm.cartography.getBuildings();

    The configuration object for the SDK.

    Index

    Constructors

    Properties

    viewer: { create: (opts: ViewerOptions) => Viewer } = ...

    Viewers' Factory

    version: string = version

    Accessors

    • get authSession(): Promise<AuthSession>

      Returns the authorization object from the API base. This gives access to the user privileges, email, and organization ID.

      Returns Promise<AuthSession>

      The authorization object.

    • get jwt(): string

      Proxy to get the JWT

      Returns string

      • the JWT calculated