idn_sdk_ruby 0.1.2 → 0.1.3
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,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YmY3NjcxZGE4ZjIzNTBhNzQ2YzM0MjA2NTBlZTYxM2Y2NjM0NzQ1Mg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YzZkOWVhZDBlODExZTFhYjdjODQxNjU5ZjE5Njc0Y2U2MWY5OThhMA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YjhlZDFlMmZhOGU4ZmNkMjlkZWU4MGJmMzkyMjU5Y2IzMmRmMzU3ODIzMDI1
|
10
|
+
ZjdlYWM5ZGYzMjdjNmQ4OGMyYmU3MjY3ZWViMjZmMjliZWYzNzViM2ZkMGVh
|
11
|
+
ZDA4Y2JiZjg1ODQ1ZjNiNGI1NGY5YmIxNGYwNTE1ZDE1OTI5Njk=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MDUyMGJlNjk4ZDEwZjBlYTBlMTg4N2FkM2JkMTMwZjE1OTQyMjgwMTk5NTM2
|
14
|
+
ZjFmMjc0ZGM4ZmRlMDQ0MGYyY2YyMTBlMDM4YTVjNWRmNWEzZjM3OTBjZTlj
|
15
|
+
ZGIwNjg4OTMyYTU2NGQwZTcxOGVjOTU2ZDBlNzlhN2QxZDIxZTQ=
|
@@ -17,6 +17,7 @@ module IdnSdkRuby
|
|
17
17
|
|
18
18
|
def getClientToken(scope = nil)
|
19
19
|
remoteApi = @remoteApiObj
|
20
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
20
21
|
map = @apiContext.getClientCredentials()
|
21
22
|
clientId = map["client_id"]
|
22
23
|
secret = map["client_secret"]
|
@@ -32,6 +33,7 @@ module IdnSdkRuby
|
|
32
33
|
|
33
34
|
def login(loginModel)
|
34
35
|
remoteApi = @remoteApiObj
|
36
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
35
37
|
authorization = @apiContext.getClientToken.getAccess_token()
|
36
38
|
response = remoteApi.login(authorization, loginModel)
|
37
39
|
if response.code == 200
|
@@ -49,6 +51,7 @@ module IdnSdkRuby
|
|
49
51
|
|
50
52
|
def signup(memberSignupModel)
|
51
53
|
remoteApi = @remoteApiObj
|
54
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
52
55
|
authorization = @apiContext.getClientToken.getAccess_token()
|
53
56
|
response = remoteApi.signup(authorization, memberSignupModel)
|
54
57
|
|
@@ -69,6 +72,7 @@ module IdnSdkRuby
|
|
69
72
|
|
70
73
|
def connect(oauth_details, connectService)
|
71
74
|
remoteApi = @remoteApiObj
|
75
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
72
76
|
authorization = @apiContext.getClientToken.getAccess_token()
|
73
77
|
map = @apiContext.getClientCredentials()
|
74
78
|
clientId = map["client_id"]
|
@@ -94,6 +98,7 @@ module IdnSdkRuby
|
|
94
98
|
|
95
99
|
def getMemberDetails(uuid)
|
96
100
|
remoteApi = @remoteApiObj
|
101
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
97
102
|
authorization = @apiContext.getUserToken('identity')
|
98
103
|
response = remoteApi.getMemberDetails(authorization, uuid)
|
99
104
|
|
@@ -109,6 +114,7 @@ module IdnSdkRuby
|
|
109
114
|
|
110
115
|
def updateMemberDetails(uuid, memberApiModel)
|
111
116
|
remoteApi = @remoteApiObj
|
117
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
112
118
|
authorization = @apiContext.getUserToken('identity')
|
113
119
|
response = remoteApi.updateMemberDetails(authorization, uuid, memberApiModel)
|
114
120
|
|
@@ -123,6 +129,7 @@ module IdnSdkRuby
|
|
123
129
|
|
124
130
|
def updateCredentials(updatePasswordApiModel)
|
125
131
|
remoteApi = @remoteApiObj
|
132
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
126
133
|
authorization = @apiContext.getUserToken('identity')
|
127
134
|
response = remoteApi.updateCredentials(authorization, updatePasswordApiModel)
|
128
135
|
|
@@ -141,6 +148,7 @@ module IdnSdkRuby
|
|
141
148
|
|
142
149
|
def logout
|
143
150
|
remoteApi = @remoteApiObj
|
151
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
144
152
|
authorization = @apiContext.getUserToken('identity')
|
145
153
|
response = remoteApi.logout(authorization)
|
146
154
|
loginModel = IdnSdkRuby::Com::Nbos::Capi::Modules::Identity::V0::LoginModel.new
|
@@ -160,6 +168,7 @@ module IdnSdkRuby
|
|
160
168
|
|
161
169
|
def tokenVerify(authorization, tokenToVerify, module_key)
|
162
170
|
remoteApi = @remoteApiObj
|
171
|
+
@remoteApiObj.host_url = @apiContext.getHost('identity')
|
163
172
|
response = remoteApi.tokenVerify(authorization, tokenToVerify, module_key)
|
164
173
|
if response.code == 200
|
165
174
|
moduleTokenApiModel = IdnSdkRuby::Com::Nbos::Capi::Modules::Identity::V0::ModuleTokenApiModel.new(response.parsed_response)
|
@@ -17,6 +17,7 @@ module IdnSdkRuby
|
|
17
17
|
|
18
18
|
def getMedia(uuid, mediafor)
|
19
19
|
remoteApi = @remoteApiObj
|
20
|
+
@remoteApiObj.host_url = @apiContext.getHost('media')
|
20
21
|
tokenApiModel = @apiContext.getUserToken("identity")
|
21
22
|
response = remoteApi.getMedia(tokenApiModel, uuid, mediafor)
|
22
23
|
if response.code == 200
|
@@ -35,6 +36,7 @@ module IdnSdkRuby
|
|
35
36
|
|
36
37
|
def uploadMedia(uuid, mediafor, media_path)
|
37
38
|
remoteApi = @remoteApiObj
|
39
|
+
@remoteApiObj.host_url = @apiContext.getHost('media')
|
38
40
|
tokenApiModel = @apiContext.getUserToken("identity")
|
39
41
|
media_file = File.new(media_path)
|
40
42
|
response = remoteApi.uploadMedia(tokenApiModel, uuid, mediafor, media_file)
|
data/lib/idn_sdk_ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: idn_sdk_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sekhar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httmultiparty
|
@@ -42,84 +42,84 @@ dependencies:
|
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ! '>='
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ! '>='
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: byebug
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ! '>='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ! '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ! '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ! '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ! '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ! '>='
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: bundler
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ~>
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '1.10'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ~>
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.10'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rake
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ~>
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '10.0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ~>
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '10.0'
|
125
125
|
description: This gem is to communicate with registered modules API in IDN server.
|
@@ -129,8 +129,8 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
-
-
|
133
|
-
-
|
132
|
+
- .gitignore
|
133
|
+
- .travis.yml
|
134
134
|
- CODE_OF_CONDUCT.md
|
135
135
|
- Gemfile
|
136
136
|
- LICENSE.txt
|
@@ -185,17 +185,17 @@ require_paths:
|
|
185
185
|
- lib
|
186
186
|
required_ruby_version: !ruby/object:Gem::Requirement
|
187
187
|
requirements:
|
188
|
-
- -
|
188
|
+
- - ! '>='
|
189
189
|
- !ruby/object:Gem::Version
|
190
190
|
version: '0'
|
191
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
|
-
- -
|
193
|
+
- - ! '>='
|
194
194
|
- !ruby/object:Gem::Version
|
195
195
|
version: '0'
|
196
196
|
requirements: []
|
197
197
|
rubyforge_project:
|
198
|
-
rubygems_version: 2.4.
|
198
|
+
rubygems_version: 2.4.3
|
199
199
|
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: Ruby Wrapper to Connect Wavelabs IDN API Server.
|