md change in readme

This commit is contained in:
onyx-and-iris 2022-07-26 22:05:09 +01:00
parent eed83946c8
commit 59d66d6ede

View File

@ -39,18 +39,14 @@ Otherwise:
port: port to access server port: port to access server
password: obs websocket server password password: obs websocket server password
``` Example `__main__.py`
>>>from obsstudio_sdk.reqs import ReqClient
>>>
>>>client = ReqClient('192.168.1.1', 4444, 'somepassword')
```
Now you can make calls to OBS ```python
from obsstudio_sdk.reqs import ReqClient
Example: Toggle the mute state of your Mic input # pass conn info if not in config.toml
cl = ReqClient('localhost', 4455, 'mystrongpass')
```
>>>cl.ToggleInputMute('Mic/Aux')
>>>
# Toggle the mute state of your Mic input
cl.ToggleInputMute('Mic/Aux')
``` ```