Access Events / Metadatas from Web inside built-in browser
AnsweredSummary
We query events / metadatas from NX server, making virtualized charts / tables.
How to access those data via built-in web? (either javascript API or HTTP API)
Description
We want to make the UI experience as smooth as possible,
for the best I can think of could be access data via javascript API.
Second best could be via HTTP API, and our user should not have to login again (since it's already inside the NX Witness)
And I also found the "vms.auth" already documented inside example, which can access auth tokens, will available in 5.1.
https://github.com/networkoptix/nx_open_integrations/blob/master/js_api_example/index.ts
Questions:
When will 5.1 release?
What's the best practice to do right now?
Thanks.
-
Hello,
How to access those data via built-in web? (either javascript API or HTTP API)
At the moment, there is no way to invoke API function directly from a javascript code, because of CORS protection. The possible schema could be the following.
1. The Client application opens a web page from your web server.
2. The code from the page sends requests to your web server.
3. Your webserver invokes Server API to get data and returns it in the HTTP response to the code in the page.
Please sign in to leave a comment.
Comments
1 comment