Class: PowerBiEmbedded::Dashboards
- Inherits:
-
Base
- Object
- Base
- PowerBiEmbedded::Dashboards
show all
- Defined in:
- lib/power_bi_embedded/dashboards.rb
Class Method Summary
collapse
Methods inherited from Base
delete, parse_response, post, put
Class Method Details
.get(group_id: nil, dashboard_id: nil, access_token: nil) ⇒ Object
4
5
6
7
8
|
# File 'lib/power_bi_embedded/dashboards.rb', line 4
def self.get(group_id: nil, dashboard_id: nil, access_token: nil)
url = "https://api.powerbi.com/v1.0/myorg/groups/#{group_id}/dashboards/#{dashboard_id}"
get(url, nil, { 'Authorization': "Bearer #{access_token}" })
end
|
.list(group_id: nil, access_token: nil) ⇒ Object
10
11
12
13
14
|
# File 'lib/power_bi_embedded/dashboards.rb', line 10
def self.list(group_id: nil, access_token: nil)
url = "https://api.powerbi.com/v1.0/myorg/groups/#{group_id}/dashboards"
get(url, nil, { 'Authorization': "Bearer #{access_token}" })
end
|