Creating Analytics Space Session

Intro #

When your user wants to access their data in order to run reports or view dashboards, you will have to create an Analytics Space Session.

These sessions are short lived and scoped sessions. Simply create an Analytics Space session and forward the user to the URL in the response.

Create Session #

You can easily create the analytics space session. The result from the server will contain one attribute that we are interested in which is the Url. Once you have the Url, send the user to that Url provided by TrackZero and they can start using the platform.
					// In order for your customer to run analytics on the data, we need to create a session key then redirect them to the TrackZero Spaces portal.
// We will need to specify the custoemr space id and the duration of the session. In this case the duration is 30 minutes.
// the session duration cannot be less than 5 minutes or longer than 60 minutes.
let session = await instance.createAnalyticsSpacePortalSessionAsync(
// redirect the user to the url stored in session.OperationData.Url


Delete a Session #

Sessions automatically expire and get removed. No action is necessary from your side.