Build a small reusable client function for APIs with timeout and exception handling.
Run your code to see output here...