Skip to content

Instantly share code, notes, and snippets.

@asabaylus
Created April 28, 2017 12:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asabaylus/29ef8ba279a32bf7bd632d052651a9b3 to your computer and use it in GitHub Desktop.
Save asabaylus/29ef8ba279a32bf7bd632d052651a9b3 to your computer and use it in GitHub Desktop.
birst
<html>
<head>
<script src="https://code.jquery.com/jquery-2.1.4.js" type="text/javascript"></script>
<script src="https://sde.birst.com/js/birst_embed.js" type="text/javascript"></script>
<script type="text/javascript">
var ssoUrl = 'https://sde.birst.com/TokenGenerator.aspx?birst.username=birstforward2016@birst.com&birst.ssopassword=wVn4lZIoEx81nj7BsdC1OJ3TsGdkJF2N&birst.spaceId=6760e6ce-413c-4f41-9b90-6d9906158299';
var params = '&birst.module=newDashboards&birst.embedded=true&birst.dashboard=Sales%20Analysis&birst.page=Summary';
function ssoPost( params ) {
$.post( ssoUrl, {}, function( data ) {
var opts = { width: '100%', height: '800', iframeSrc: 'https://sde.birst.com/SSO.aspx?birst.SSOToken=' + data + params };
BirstConfig.create("embedded-container", opts);
} );
}
ssoPost( params );
</script>
</head>
<body>
<img height="120" width="100%" src="https://s3.amazonaws.com/birstSE/ImagesForDemos/BirstBanner.jpg"></img>
<br/><br/>
<div id="embedded-container"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment