Function fetchFromBox

  • Retrieves a previously cached object (file) from the OBLAC box or native app cache.

    When running in an Electron app, it uses the native API to get the cached file, otherwise it fetches from a local cache HTTP path.

    Returns

    A promise that resolves to the cached object in the specified format, or undefined if the file could not be retrieved.

    Parameters

    • path: string

      The path to the cached object within the box or app cache.

    • resolveTo: "json" | "text" | "blob"

      The format to resolve the fetched object to: 'blob', 'json', or 'text'.

    Returns Promise<any>

Generated using TypeDoc