api-ai-ruby 1.1.1 → 1.1.2
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 -2
- data/lib/api-ai-ruby/constants.rb +1 -1
- data/lib/api-ai-ruby/request_query.rb +2 -2
- 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: 4b69ad9a51f597caeaeab7e93d5cb7e30e2fc03c
|
4
|
+
data.tar.gz: 0bf0428830e1f8f97e71b79ec01c30b1d74aff04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fe5da387c1f98be283b266f90734a0864c25b211e6ce3eb0250542297444c10ed1e3bce7d3e778f14e912473fa07c0f686e082659e4edc43fdf0261371ffe10
|
7
|
+
data.tar.gz: 79ef1397396e801f6c35886b6248580f968125590cd61534ee5e7d3db41980f473f890260f0b7cd9adfc81aa811e79df5c05eee88bf4fcb10ad3226258e2366d
|
data/README.md
CHANGED
@@ -11,7 +11,7 @@ Just pass correct credentials to **ApiAiRuby::Client** constructor
|
|
11
11
|
|
12
12
|
```ruby
|
13
13
|
client = ApiAiRuby::Client.new(
|
14
|
-
:client_access_token => '
|
14
|
+
:client_access_token => 'YOUR_CLIENT_ACCESS_TOKEN'
|
15
15
|
)
|
16
16
|
```
|
17
17
|
After that you can send text requests to the https://api.ai with command
|
@@ -78,5 +78,6 @@ More information about possible parameters can be found at https://docs.api.ai/d
|
|
78
78
|
**ApiAiRuby::Client** currently able to raise two kind of errors: **ApiAiRuby::ClientError** (due to configuration mismatch) and **ApiAiRuby::RequestError** in case of something goes wrong during request. For both kind of errors you can get **error.message** (as usual) and **ApiAiRuby::RequestError** can additionally give you code of server error (you can get it with **error.code**)
|
79
79
|
|
80
80
|
|
81
|
+
#Changelog
|
81
82
|
|
82
|
-
|
83
|
+
1.1.2 - fixed compatibility with ruby version less then 2.1.6
|
@@ -17,7 +17,7 @@ module ApiAiRuby
|
|
17
17
|
options[:lang] = client.api_lang
|
18
18
|
@options = options
|
19
19
|
@headers = {
|
20
|
-
|
20
|
+
Authorization: 'Bearer ' + client.client_access_token,
|
21
21
|
}
|
22
22
|
end
|
23
23
|
|
@@ -56,4 +56,4 @@ module ApiAiRuby
|
|
56
56
|
end
|
57
57
|
|
58
58
|
end
|
59
|
-
end
|
59
|
+
end
|