update readme

ReqClient  object initialization  should be done as follows
```python
from obsstudio_sdk import reqs
cl = reqs.ReqClient(host, port, password)
```
This commit is contained in:
Adem 2022-08-26 13:17:29 +03:00 committed by GitHub
parent bd791524d4
commit 35b7c16b6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ Import and start using, keyword arguments are as follows:
Example `__main__.py`:
```python
import obsstudio_sdk as obs
from obsstudio_sdk import reqs as obs
# pass conn info if not in config.toml
cl = obs.ReqClient(host='localhost', port=4455, password='mystrongpass')
@ -60,7 +60,9 @@ Method names for requests match the API calls but snake cased.
example:
```python
cl = ReqClient()
from obsstudio_sdk import reqs as obs
cl = obs.ReqClient(host='localhost', port=4455, password='mystrongpass')
# GetVersion
resp = cl.get_version()