You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ context_request.delete() # will remove all context in session
153
153
154
154
```
155
155
156
-
#Timeouts
156
+
#Timeouts
157
157
**ApiAiRuby::Client** uses the [http gem](https://github.com/httprb/http) under the hood. You can use ```timeout_options``` on the client to set these.
158
158
```ruby
159
159
ApiAiRuby::Client.new(
@@ -169,27 +169,27 @@ ApiAiRuby::Client.new(
169
169
Please see the [httprb wiki on timeouts](https://github.com/httprb/http/wiki/Timeouts) for more information.
170
170
171
171
172
-
#Error handling
172
+
#Error handling
173
173
**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**)
174
174
175
175
176
-
#Changelog
176
+
#Changelog
177
177
178
-
##2.0.0
179
-
###Breaking:
178
+
##2.0.0
179
+
###Breaking:
180
180
- http gem dependency updated to 2.0, it does no longer raise `Errno::ETIMEDOUT`. Thanks to @tak1n
181
181
182
-
##1.3.0
182
+
##1.3.0
183
183
184
-
###Non-breaking:
184
+
###Non-breaking:
185
185
- contexts endpoint support (https://docs.api.ai/docs/contexts)
186
186
- better RDoc
187
187
188
-
###Breaking:
188
+
###Breaking:
189
189
- ApiAiRuby::Client::user_entities_request renamed to ApiAiRuby::Client::create_user_entities_request
190
190
- ApiAiRuby::Entity::addEntry renamed to ApiAiRuby::Entity::add_entry
191
191
192
-
##Previous
192
+
##Previous
193
193
* 1.2.3 - events support
194
194
* 1.2.2 - added configurable timeouts for requests (thanks [bramski](https://github.com/bramski))
0 commit comments