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