AvrijAnalyticsUtility 0.5.1 → 0.5.2
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/AvrijAnalyticsUtility/APIConnector.rb +13 -4
- data/lib/AvrijAnalyticsUtility/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 162727047ff2b221c5ba3457c1ae3b910fbf0f55
|
|
4
|
+
data.tar.gz: 53c2f2f3ea65e795a941fff9a2011e3a3aaefe03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 034c16d66f7a02b3f73cc33457b258c56a3df1a00baad800cfe193c665f4ace11662b60e795ac1a88929b4af442e5eba9ddd35b712db75454eea00effc51eaeb
|
|
7
|
+
data.tar.gz: faf3bdc96f45c9a688bce4514b09e4804213fe493e6044d989d40ddff0a91f6920c02494a58dad0abcb9675976fc99d11015ecd0abb9c78280947cfb1ef1631e
|
|
@@ -17,6 +17,14 @@ class AvrijAnalyticsUtility::APIConnector
|
|
|
17
17
|
@request_options = nil
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
+
|
|
21
|
+
##
|
|
22
|
+
# Returns the header authentication value including the token
|
|
23
|
+
def getAuthValue
|
|
24
|
+
return @auth_value
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
|
|
20
28
|
# Perform API request
|
|
21
29
|
#
|
|
22
30
|
# ==== Attributes
|
|
@@ -108,14 +116,15 @@ class AvrijAnalyticsUtility::APIConnector
|
|
|
108
116
|
# ==== Steps for Authentication
|
|
109
117
|
#
|
|
110
118
|
# myConnector = APIConnector.new(base_uri)
|
|
111
|
-
#
|
|
119
|
+
#
|
|
120
|
+
# auth_Header = \{
|
|
112
121
|
# "Authorization" => "Bearer undefined"
|
|
113
|
-
# }
|
|
122
|
+
# \}
|
|
114
123
|
#
|
|
115
|
-
# auth_body = {
|
|
124
|
+
# auth_body = \{
|
|
116
125
|
# "username" => "myusername",
|
|
117
126
|
# "password" => "mypassword"
|
|
118
|
-
# }
|
|
127
|
+
# \}
|
|
119
128
|
#
|
|
120
129
|
# myConnector.setHeader(auth_Header)
|
|
121
130
|
# myConnector.setBody(auth_body)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: AvrijAnalyticsUtility
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Dalisay
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-07-
|
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -128,7 +128,7 @@ licenses:
|
|
|
128
128
|
- MIT
|
|
129
129
|
metadata:
|
|
130
130
|
allowed_push_host: https://rubygems.org
|
|
131
|
-
post_install_message: 'AvrijAnalyticsUtility VERSION : 0.5.
|
|
131
|
+
post_install_message: 'AvrijAnalyticsUtility VERSION : 0.5.2'
|
|
132
132
|
rdoc_options: []
|
|
133
133
|
require_paths:
|
|
134
134
|
- lib
|