Skip to content

Commit 672eb86

Browse files
Merge branch 'master' into personality-insights-csv-fix
2 parents 535b19f + 58ee9e9 commit 672eb86

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,22 @@ Version 1.0 focuses on the move to programmatically-generated code for many of t
6666
## Migration
6767
This version includes many breaking changes as a result of standardizing behavior across the new generated services. Full details on migration from previous versions can be found [here](https://github.com/watson-developer-cloud/python-sdk/wiki/Migration).
6868

69+
## Configuring the http client
70+
To set client configs like timeout use the `with_http_config()` function and pass it a dictionary of configs.
71+
72+
```python
73+
from watson_developer_cloud import ConversationV1
74+
75+
conversation = ConversationV1(
76+
username='xxx',
77+
password='yyy',
78+
version='2017-04-21')
79+
80+
conversation.set_http_config({'timeout': 100});
81+
response = conversation.message(workspace_id=workspace_id, input={
82+
'text': 'What\'s the weather like?'})
83+
print(json.dumps(response, indent=2))
84+
```
6985
## Known Issues
7086

7187
See [issues](https://github.com/watson-developer-cloud/python-sdk/issues).

0 commit comments

Comments
 (0)