Skip to main content

REST API with CORS Example

This applies to: Managed Dashboards, Managed Reports

For the examples in this section where Symphony is embedded on the page, it is embedded using an inline frame (iframe). You can also use the Symphony embed library and use its runScript method.

The following example sends a /Dashboard/ request to the Symphony server from your own application's JavaScript. In this case, there may not be any embedded application on the page.

$(document).ready(function() { // REST API example var def = $.ajax("https://dundas.mysite.com/api/dashboard/[dashboardId]", { headers: { "Authorization": "Bearer " + sessionId } } ); def.done(function (dashboard) { // perform action here. }); // Note that this method returns a plain object rather than a full Dundas class instance });

Was this article helpful?

We're sorry to hear that.

Powered by Zendesk