How to use it ?

1. Create an Azure AD Application and set it

2. Load the JS framework from your HTML page.
<script type="text/javascript" src="path to the file/jpbi-0.1.0b.min.js" />

3. Build an HTML page to embed your report
<iframe ID="iFrameID" src="" frameborder="0" height="800" width="1300" seamless></iframe>

4. Load your reports and tiles through iFrames with three lines of Javascript !

For a report :
updateEmbedReport("iFrameID", "Embed Url of the Report*", "The client ID of your Azure AD Application");

For a tile :
updateEmbedTile("iFrameID", "Embed Url of the Tile*", height of the tile (int), width of the tile (int), "The client ID of your Azure AD Application")

*Use Apiary tool to get the embed Url of tiles and reports.
http://docs.powerbi.apiary.io/
Please see : https://rockwithazure.wordpress.com/2015/12/06/100-js-embed-power-bi-tiles/ for any further information about it

Last edited Apr 5, 2016 at 8:21 PM by auprevot, version 6