API capability is one of the most important technical points to measure the embedded integration capability of an embedded BI product. In Wyn Enterprise V5.0 Update1, the embedded API capabilities are further enhanced. This article describes how to set the default data set or data model for a diagram when integrating the designer in a DIV manner. Embedded technology points in this update include:

We know that Wyn EnterPrise supports deep integration of dashboard designers into users’ systems using DIVs. This approach is purely front-end, we only need to introduce relevant JS, CSS resources, with a few lines of code can achieve the display of a dashboard designer in the user system. For information on how to integrate a DIV designer, refer directly to the help document: Integrate a Dashboard (or designer) DIV

Gcdn.grapecity.com.cn/showtopic-1…

To specify the default bound data set or data model for the graph directly for the designer, it is as simple as passing in the ID of a created data set or data model in the options argument: wynbi.create ()

1. Streaming datasets can be created dynamically through code* * * *

Streaming datasets can be created dynamically in code and can be used to push data.

Create streaming data sets from the interface, or you can create data sets by calling the relevant API, which is suitable for scenarios with deep integration of customer requirements.

1. Push datasets can be created in code* * * *

Push datasets can be created from the interface or by calling the relevant API, which is suitable for scenarios with deep integration of customer requirements.

1. User context Properties added Sets system language properties* * * *

Added a property called “language_preference”, which can be used as one of the members of the user above to specify the user’s system language. With this capability, the system language can be specified directly for the user, no need to be set up by the user, whether it is in the process of deeply embedding Wyn Enterprise integration, or when calling the Wyn Enterprise API for single sign-on. This interface enhancement, especially for customers whose end users are distributed in different countries, allows users in different countries to specify the system language directly, without the need for each user to set it separately.

1. With AuthToken, system integration is more secure* * * *

AuthToken can be introduced to meet the integration scenarios with higher security requirements. When we need to share a document with other users, we first obtain the authToken through relevant API, and then add the authToken to the URL to form a complete integrated URL and share it with other users.

And the ability to set a cookie for the browser using the same authToken is only performed once. So if this URL is leaked illegally, other browsers will not be able to access it, because cookies will no longer be generated for the user! This greatly enhances security, and at the same time, when the API is initially called to generate authToken, you can also pass in parameters to specify the expiration date of the cookie, more control! Here are the parameters that can be passed in to generate an authToken: