From 35b7c16b6b4e4abf63209e2bb3b830534554119c Mon Sep 17 00:00:00 2001 From: Adem <34811741+aatikturk@users.noreply.github.com> Date: Fri, 26 Aug 2022 13:17:29 +0300 Subject: [PATCH] update readme ReqClient object initialization should be done as follows ```python from obsstudio_sdk import reqs cl = reqs.ReqClient(host, port, password) ``` --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a4c86b..6f9a7ad 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ Import and start using, keyword arguments are as follows: Example `__main__.py`: ```python -import obsstudio_sdk as obs +from obsstudio_sdk import reqs as obs # pass conn info if not in config.toml cl = obs.ReqClient(host='localhost', port=4455, password='mystrongpass') @@ -60,7 +60,9 @@ Method names for requests match the API calls but snake cased. example: ```python -cl = ReqClient() +from obsstudio_sdk import reqs as obs +cl = obs.ReqClient(host='localhost', port=4455, password='mystrongpass') + # GetVersion resp = cl.get_version()