Refactor client to have a common send request method
Type hinting, Unit test for type hinting