watson-assistant-chatbot 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watson-assistant-chatbot.rb +8 -0
- 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: f23fc478404d902f1cecf031711af5acc450e5f18067841f7b3b859e766162ed
|
4
|
+
data.tar.gz: b4e207f780519b318d49e0acedc60141dc0dee11df5e5440ad2d6661f90c813d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 646b4591b70ea6aace68b22decd1a6070b690d612a888eba75c37baea49e78ad743a58fc8277d14129a57fcfb2e03916b33f728b1d3107c5777cb5e781010c7e
|
7
|
+
data.tar.gz: 8126ae04fc594cee473d1af3ceebc515d8c3a2c21276db0d3c300b0d411a8586d7b0a2e688c7d005531f6a345faaf8f518cb01c41cb2363085456703ed1640f9
|
@@ -18,6 +18,14 @@ module WatsonAssistant
|
|
18
18
|
|
19
19
|
class << self
|
20
20
|
attr_accessor :api_domain, :api_version
|
21
|
+
|
22
|
+
def new_with_api_key(workspace_id, api_key)
|
23
|
+
new(nil, nil, workspace_id, api_key)
|
24
|
+
end
|
25
|
+
|
26
|
+
def new_with_user_credentials(workspace_id, user_id, password)
|
27
|
+
new(user_id, password, workspace_id)
|
28
|
+
end
|
21
29
|
end
|
22
30
|
|
23
31
|
def initialize(user_id, password, workspace_id, api_key = nil)
|