From 59d66d6ede3f6b919014dfef87cf39de3eef2cbe Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Tue, 26 Jul 2022 22:05:09 +0100 Subject: [PATCH] md change in readme --- README.md | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 16ec141..18301e4 100644 --- a/README.md +++ b/README.md @@ -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') ```