Interface ApiXDataManager

An interface for a data manager used for the API.

The data manager is in charge of reading databases for the needed data or resources.

It requires a way to get an Application Key for an API Key and a way to get a User ID for a given Session ID.

interface ApiXDataManager {
    getAppKeyForApiKey(apiKey: string): null | string | Promise<null | string>;
}

Methods

  • Fetches the application key for a given API key.

    Parameters

    • apiKey: string

      The API key.

    Returns null | string | Promise<null | string>

    The App Key or null.