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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 065b65fb446bc18f8ba24f3184f3926e3bc2c5af94596c818527c81293b15370
4
- data.tar.gz: e1985b72df7af1bd1bf07ea2e3f2a26ec6c43d642e95a9460b1b32aeb5a80386
3
+ metadata.gz: f8837f910750235d9913a2793bb04463ca2262a4ac6a60f3a5b263b0b3971070
4
+ data.tar.gz: 522ebf9f9e3bda5c2e098e3943ab54ca2626caf26542c6c489b9b8b573ba3206
5
5
  SHA512:
6
- metadata.gz: 74605142e204e3914fff85d5811ae8db4f3debe978c668e9c09ade4f53934b44cd1afdd0a7edd7f260f5ae714ed5ec3bb491a0be8952e0a77fd451d95239e5e9
7
- data.tar.gz: 54af7a1a3c932c525521c4ab4e7a7c94542ddd4d1f68e55a321eb6c828aba12373f700150c64a58f1aabc129719131d22e8b9a3bcd86a04662880c67ebba16c0
6
+ metadata.gz: d990ba94f110597126b3211ada19e402257cfb14d4480ee671f9d4801a6e8eeb2b4931353659c0b4da40ffaa79ebd536455aa1679e8f265bc77d681825c97f21
7
+ data.tar.gz: ace423af4129954dbcfbc382e5ffac31ca27af865874cf2e54131a226ac8144ff1eff0bfe49dc354624e0ca8d3fe22b20bad06d8cee291cf94ef2db245b229b4
@@ -1,5 +1,5 @@
1
1
  module PowerBiEmbedded
2
- class Authenticate < Base
2
+ class Authenticate
3
3
 
4
4
  BASE_URL = "https://login.windows.net/common/oauth2/token"
5
5
  RESOURCE = "https://analysis.windows.net/powerbi/api"
@@ -1,16 +1,16 @@
1
1
  module PowerBiEmbedded
2
- class Dashboards < Base
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 < Base
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 < Base
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 < Base
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 < Base
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
@@ -1,3 +1,3 @@
1
1
  module PowerBiEmbedded
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_bi_embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique Januário