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
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,11 +140,6 @@ uer.retrieve('contacts') # will return current state of user entity
140
140
uer.delete('contacts') # will remove user entities for given session
141
141
142
142
```
143
-
144
-
145
-
#Error handling
146
-
**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**)
147
-
148
143
#Timeouts
149
144
**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.
150
145
```ruby
@@ -160,8 +155,14 @@ ApiAiRuby::Client.new(
160
155
161
156
Please see the [httprb wiki on timeouts](https://github.com/httprb/http/wiki/Timeouts) for more information.
162
157
158
+
159
+
#Error handling
160
+
**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**)
161
+
162
+
163
163
#Changelog
164
164
165
+
* 1.2.2 - added configurable timeouts for requests (thanks [bramski](https://github.com/bramski))
165
166
* 1.2.1 - fixed UTF-8 in text-requests
166
167
* 1.2.0 - added configurable session_id and full userEntities support
167
168
* 1.1.4 - removed unused dependency and updated default API version
0 commit comments