chatbase 0.1.02 → 0.1.03
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/chatbase/http_service.rb +1 -1
- data/lib/chatbase/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba6c32b549623e7f9db45d0de48ce88b9c04f0f8
|
4
|
+
data.tar.gz: 6a05eaaa3501106d2fdf678c8d4533779d771af2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 958ce3922f74cf86c44276dd8468d696f6f92724dda0579b9acfcc4f9ddf174b6135849c25354b90d3a76696de829d3bad22c048e6873320184d9342212f33e0
|
7
|
+
data.tar.gz: c5fcfe1dd16ec1060949be0a9c59328568a609cfb91c23a5bcdf1ee33a55efe47195d5a73afe284297a1d547c707fe66d61c4a8356a6a7a585408f61fc583178
|
data/README.md
CHANGED
@@ -21,7 +21,9 @@ bundle install chatbase
|
|
21
21
|
|
22
22
|
# Setup
|
23
23
|
|
24
|
-
Initialize the the gem by setting your
|
24
|
+
Initialize the the gem by setting your Agent Key (agent_key) and Agent Name (agent_name).
|
25
|
+
|
26
|
+
eg: config/initializers/chatbase.rb
|
25
27
|
|
26
28
|
```
|
27
29
|
Chatbase.agent_key = 'your-agent-api-key'
|
@@ -9,7 +9,7 @@ module Chatbase
|
|
9
9
|
|
10
10
|
def connection
|
11
11
|
@connection ||= begin
|
12
|
-
Faraday.new(:url => 'https://chatbase
|
12
|
+
Faraday.new(:url => 'https://chatbase.com/api/message') do |faraday|
|
13
13
|
faraday.response :json, :content_type => /\bjson$/
|
14
14
|
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
|
15
15
|
end
|
data/lib/chatbase/version.rb
CHANGED