uiza 1.1.1 → 1.2.0

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.
@@ -1,42 +0,0 @@
1
- module Uiza
2
- class Analytic
3
- OBJECT_API_PATH = "analytic/entity/video-quality".freeze
4
- OBJECT_API_DESCRIPTION_LINK = {
5
- get_total_line: "https://docs.uiza.io/#total-line",
6
- get_type: "https://docs.uiza.io/#type",
7
- get_line: "https://docs.uiza.io/#line"
8
- }.freeze
9
-
10
- class << self
11
- def get_total_line params
12
- url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/total-line-v2"
13
- method = :get
14
- headers = {"Authorization" => Uiza.authorization}
15
- description_link = OBJECT_API_DESCRIPTION_LINK[:get_total_line]
16
-
17
- uiza_client = UizaClient.new url, method, headers, params, description_link
18
- uiza_client.execute_request
19
- end
20
-
21
- def get_type params
22
- url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/type"
23
- method = :get
24
- headers = {"Authorization" => Uiza.authorization}
25
- description_link = OBJECT_API_DESCRIPTION_LINK[:get_type]
26
-
27
- uiza_client = UizaClient.new url, method, headers, params, description_link
28
- uiza_client.execute_request
29
- end
30
-
31
- def get_line params
32
- url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/line"
33
- method = :get
34
- headers = {"Authorization" => Uiza.authorization}
35
- description_link = OBJECT_API_DESCRIPTION_LINK[:get_line]
36
-
37
- uiza_client = UizaClient.new url, method, headers, params, description_link
38
- uiza_client.execute_request
39
- end
40
- end
41
- end
42
- end