If you have any Python skills and want to integrate with the HCW@Home API, we are excited to announce we have launched a Python SDK package.
For example, this package can be very helpful in automating the HCW@Home patient invitation process.
- Python pip package page: pypi.org/project/hcw-py-sdk
- SDK documentation: hcw-home.github.io/hcw-docs/python
How to use the SDK
The usage is straightforward. First, install the pip package.
pip install hcw-py-sdk
Then write a piece of code to communicate with the API.
from hcw_py_sdk import HCW
# Create instance with API info
hcw = HCW(
base_url='https://{url}/api/v1',
username='{admin}',
password='{password}'
)
# Print the queues
print(hcw.queue.list)
That's all.