Created
October 5, 2018 10:29
-
-
Save krishnaanaril/60ed55af5b583142f5c6b5a77e999d8f to your computer and use it in GitHub Desktop.
Calling Power BI API to get tiles in group
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public getTilesInGroup(groupId: string, dashboardKey: string){ | |
const headers = new HttpHeaders({ | |
'Content-Type': 'application/json', | |
'Authorization': `Bearer ${this._context.getCachedToken(environment.powerBIEndpoint)}` | |
});// this._context is the ADAL AuthenticationContext object | |
return this.http.get(`https://api.powerbi.com/v1.0/myorg/groups/${groupId}/dashboards/${dashboardKey}/tiles`, { headers: headers }); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment