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
By default the hosts are set to `api.nexmo.com` and `rest.nexmo.com`, respectively.
181
182
183
+
### HTTP Client Configuration
184
+
185
+
It is possible to set configuration options on the HTTP client. This can be don in a couple of ways.
186
+
187
+
1. Using an `:http` key during `Vonage::Client` instantiation, for example:
188
+
```ruby
189
+
client =Vonage::Client.new(
190
+
api_key:'YOUR-API-KEY',
191
+
api_secret:'YOUR-API-SECRET',
192
+
http: {
193
+
max_retries:1
194
+
}
195
+
)
196
+
```
197
+
198
+
2. Byusing the `http=` setter on the `Vonage::Config` object, forexample:
199
+
```ruby
200
+
client = Vonage::Client.new(
201
+
api_key: 'YOUR-API-KEY',
202
+
api_secret: 'YOUR-API-SECRET'
203
+
)
204
+
205
+
client.config.http = { max_retries: 1 }
206
+
```
207
+
208
+
TheVonageRubySDK uses the [`Net::HTTP::Persistent` library](https://github.com/drbrain/net-http-persistent) as an HTTP client. For available configuration options see [the documentation for that library](https://www.rubydoc.info/gems/net-http-persistent/3.0.0/Net/HTTP/Persistent).
209
+
182
210
### Webhook signatures
183
211
184
212
CertainVonageAPIs provide signed [webhooks](https://developer.vonage.com/en/getting-started/concepts/webhooks) as a means of verifying the origin of the webhooks. The exact signing mechanism varies depending on the API.
0 commit comments