From 051b5898a2812d5529837af17380abeffda41ebd Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Thu, 28 Jul 2022 00:12:45 +0100 Subject: [PATCH] change example in main to use kwargs. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0af966f..ada4121 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ It should be placed next to your `__main__.py` file. #### Otherwise: -Import and start using, parameters are as follows: +Import and start using, keyword arguments are as follows: - `host`: obs websocket server - `port`: port to access server @@ -42,7 +42,7 @@ Example `__main__.py` import obsstudio_sdk as obs # pass conn info if not in config.toml -cl = obs.ReqClient('localhost', 4455, 'mystrongpass') +cl = obs.ReqClient(host='localhost', port=4455, password='mystrongpass') # Toggle the mute state of your Mic input cl.toggle_input_mute('Mic/Aux')