Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 17893

Invalid Status Code Forbidden after client.Dashboards.GenerateTokenInGroupAsync

$
0
0

Dashboard that I wanted was in the call directly before, then it errors...

 

var dashboards = await client.Dashboards.GetDashboardsInGroupAsync(GroupId);

// Get the first report in the group.

var dashboard = dashboards.Value.FirstOrDefault();

if (dashboard == null)

{

return View(newEmbedConfig()

 {

ErrorMessage = "Group has no dashboards."

 });

}

// Generate Embed Token.

var generateTokenRequestParameters = newGenerateTokenRequest(accessLevel: "view");

var tokenResponse = await client.Dashboards.GenerateTokenInGroupAsync(GroupId, dashboard.Id, generateTokenRequestParameters);

 


Viewing all articles
Browse latest Browse all 17893

Trending Articles



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