For example, This must be the same machine as the one in the BASE_URL. URL that points to the MicroStrategy Library home page. This must be the same machine as the one in the projectURL. For example, The REST API endpoints will be appended to this base URL. Use the following variables to configure the Intelligence Server, project, folder, user credentials, and number of documents to display on the page.īase URL of the REST API. The controller.js file is used to configure the sample for your environment. Use the sample by modifying the search and selecting different documents. ![]() Open the sample using either the administrator page of your application server, such as Tomcat Manager, or a URL like the one shown below: Configure the sample for your environment.The javascript file used to configure the sample is called controller.js. The main HTML page for the sample is called app.html. The EmbeddingAPIWorkflowSample folder contains HTML files, javascript files, image files, and a CSS file.The sample needs to be placed in the same location where MicroStrategyLibrary is deployed. For example, if you are using Tomcat, you would extract the EmbeddingAPIWorkflowSample folder and its contents to the Tomcat webapps folder. When the user clicks a document in the list, it is embedded as a dossier in the right pane of the web page.ĭownload the zipped sample and extract the EmbeddingAPIWorkflowSample folder and its contents to your application server. In this sample, the documents returned by the GET /searches/results REST API request are listed on the left side of the web page. This javascript API is used to embed a dossier into a web page. In this sample, the API is used to find all of the documents in the Public Objects folder by default. The authorization token and a folder ID or name are passed in. The Quick Search Engine periodically indexes the metadata and stores the results in memory, making Quick Search very fast but with results that may not be the most recent. This REST API returns a list of search results based on the stored results of the Quick Search engine. In this sample, the API returns all the pre-defined folders in the MicroStrategy Tutorial project by default. ![]() The authorization token and a project ID are passed in. This REST API returns a list of all pre-defined folders, such as the Public Objects folder, in a specified project. In this sample, the API returns all the projects the authenticated user can access on a specified Intelligence Server. This REST API returns the list of projects that the authenticated user has access to, based on the authorization token that is passed in. ![]() In this sample, standard authentication mode is used to create a configuration session. It returns an authorization token (authToken), which is then used by subsequent REST API calls. It creates a MicroStrategy session using credentials for the user, a specified authentication mode, and other information passed in the body of the request. The workflow for this sample is shown below: It uses a javascript API to embed the dossier. This sample uses REST APIs to authenticate the user, get all of the projects, get the configuration-level folders for a specified project, and search for objects in the root folder. The following sections help you understand and use the sample: This sample illustrates how to use REST APIs to authenticate and search for documents in a specific folder, and then use a javascript API to embed a document selected from the search results, as a MicroStrategy dossier, in a third-party web application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |