Quantcast
Channel: All Developer posts
Viewing all articles
Browse latest Browse all 48627

Re: Power BI in ASP Net MVC

$
0
0

Hello

 

How do you get your token ? From the authorizationcode ( with your powerBI account ) ?

 

I used this code to get a report :

 

 

string baseUri = "https://api.powerbi.com/v1.0/myorg/reports";
string token =  "token";
//Configure Reports request
System.Net.WebRequest request = System.Net.WebRequest.Create(
String.Format("{0}",
baseUri)) as System.Net.HttpWebRequest;
request.Method = "GET";
request.ContentLength = 0;
request.Headers.Add("Authorization", String.Format("Bearer {0}", token));

using (var response = request.GetResponse() as System.Net.HttpWebResponse)
{
    //do something..
}

 

Given that there was the SSRS's update in January 2017, we can display powerBI in SSRS ( such as RDL ) but is it possible to take this url to display a powerBI report,  i.e : in an iframe ? ( on-premise )

 

 

 


Viewing all articles
Browse latest Browse all 48627

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>