mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-25 22:30:49 +00:00
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:
parent
bd791524d4
commit
35b7c16b6b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user