/// <summary> /// Initializes a new instance of the <see cref="XamarinPowerShop.App"/> class. /// </summary> public App() { PowerBIClient.Initialize( new Api { Url = "https://api.powerbi.com/beta/myorg/datasets" }, new OAuth { Authority = "https://login.windows.net/common/oauth2/authorize", Resource = "https://analysis.windows.net/powerbi/api", Client = "MyClientId", User = "******", Password = "******" } ); // The root page of your application MainPage = new RootPage(); }
/// <summary> /// Initializes a new instance of the <see cref="XamarinPowerShop.App"/> class. /// </summary> public App() { PowerBIClient.Initialize( new Api { Url = "https://api.powerbi.com/beta/myorg/datasets" }, new OAuth { Authority = "https://login.windows.net/common/oauth2/authorize", Resource = "https://analysis.windows.net/powerbi/api", Client = "MyClientId", User = "******", Password ="******" } ); // The root page of your application MainPage = new RootPage(); }