Fix post function in Client.php

Using correct json_encode arguments. getParams breaks because it isn't JSON.