power_bi_embedded 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/power_bi_embedded/authenticate.rb +1 -1
- data/lib/power_bi_embedded/dashboards.rb +3 -3
- data/lib/power_bi_embedded/embed_token.rb +2 -2
- data/lib/power_bi_embedded/groups.rb +2 -2
- data/lib/power_bi_embedded/reports.rb +3 -3
- data/lib/power_bi_embedded/tiles.rb +3 -3
- data/lib/power_bi_embedded/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8837f910750235d9913a2793bb04463ca2262a4ac6a60f3a5b263b0b3971070
|
4
|
+
data.tar.gz: 522ebf9f9e3bda5c2e098e3943ab54ca2626caf26542c6c489b9b8b573ba3206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d990ba94f110597126b3211ada19e402257cfb14d4480ee671f9d4801a6e8eeb2b4931353659c0b4da40ffaa79ebd536455aa1679e8f265bc77d681825c97f21
|
7
|
+
data.tar.gz: ace423af4129954dbcfbc382e5ffac31ca27af865874cf2e54131a226ac8144ff1eff0bfe49dc354624e0ca8d3fe22b20bad06d8cee291cf94ef2db245b229b4
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module PowerBiEmbedded
|
2
|
-
class Dashboards
|
2
|
+
class Dashboards
|
3
3
|
|
4
4
|
def self.get(group_id: nil, dashboard_id: nil, access_token: nil)
|
5
5
|
url = "https://api.powerbi.com/v1.0/myorg/groups/#{group_id}/dashboards/#{dashboard_id}"
|
6
6
|
|
7
|
-
get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
7
|
+
PowerBiEmbedded::Base.get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.list(group_id: nil, access_token: nil)
|
11
11
|
url = "https://api.powerbi.com/v1.0/myorg/groups/#{group_id}/dashboards"
|
12
12
|
|
13
|
-
get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
13
|
+
PowerBiEmbedded::Base.get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module PowerBiEmbedded
|
2
|
-
class EmbedToken
|
2
|
+
class EmbedToken
|
3
3
|
|
4
4
|
def initialize(access_token: nil, group_id: nil, resource: nil, resource_id: nil,
|
5
5
|
tile_id: nil, dataset_id: nil, access_level: nil, identities: nil, allow_save_as: false)
|
@@ -17,7 +17,7 @@ module PowerBiEmbedded
|
|
17
17
|
def call
|
18
18
|
url = send(@resource) if @resource.present?
|
19
19
|
|
20
|
-
post(url, build_body, build_headers)
|
20
|
+
PowerBiEmbedded::Base.post(url, build_body, build_headers)
|
21
21
|
end
|
22
22
|
|
23
23
|
private
|
@@ -1,9 +1,9 @@
|
|
1
1
|
module PowerBiEmbedded
|
2
|
-
class Groups
|
2
|
+
class Groups
|
3
3
|
BASE_URL = "https://api.powerbi.com/v1.0/myorg/groups"
|
4
4
|
|
5
5
|
def self.list(access_token: nil)
|
6
|
-
get(BASE_URL, nil, { 'Authorization': "Bearer #{access_token}" })
|
6
|
+
PowerBiEmbedded::Base.get(BASE_URL, nil, { 'Authorization': "Bearer #{access_token}" })
|
7
7
|
end
|
8
8
|
|
9
9
|
end
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module PowerBiEmbedded
|
2
|
-
class Reports
|
2
|
+
class Reports
|
3
3
|
|
4
4
|
def self.get(group_id: nil, report_id: nil, access_token: nil)
|
5
5
|
url = "https://api.powerbi.com/v1.0/myorg/groups/#{group_id}/reports/#{report_id}"
|
6
6
|
|
7
|
-
get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
7
|
+
PowerBiEmbedded::Base.get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.list(group_id: nil, access_token: nil)
|
11
11
|
url = "https://api.powerbi.com/v1.0/myorg/groups/#{group_id}/reports"
|
12
12
|
|
13
|
-
get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
13
|
+
PowerBiEmbedded::Base.get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|
@@ -1,16 +1,16 @@
|
|
1
1
|
module PowerBiEmbedded
|
2
|
-
class Tiles
|
2
|
+
class Tiles
|
3
3
|
|
4
4
|
def self.get(group_id: nil, dashboard_id: nil, tile_id: nil, access_token: nil)
|
5
5
|
url = "https://api.powerbi.com/v1.0/myorg/groups/#{group_id}/dashboards/#{dashboard_id}/tiles/#{tile_id}"
|
6
6
|
|
7
|
-
get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
7
|
+
PowerBiEmbedded::Base.get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.list(group_id: nil, dashboard_id: nil, access_token: nil)
|
11
11
|
url = "https://api.powerbi.com/v1.0/myorg/groups/#{group_id}/dashboards/#{dashboard_id}/tiles"
|
12
12
|
|
13
|
-
get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
13
|
+
PowerBiEmbedded::Base.get(url, nil, { 'Authorization': "Bearer #{access_token}" })
|
14
14
|
end
|
15
15
|
|
16
16
|
end
|