mirror of
https://github.com/onyx-and-iris/obsws-python.git
synced 2024-11-22 12:50:53 +00:00
change example in main to use kwargs.
This commit is contained in:
parent
5b2bc6e13a
commit
051b5898a2
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user