In case of invalid password we obtain
GuzzleHttp\Exception\ClientException object {
message => (string) Client error: `GET https://api.rb.cz/rbcz/premium/api/accounts/1223213213/balance` resulted in a `403 Forbidden` response:
{"error":"INVALID_REQUEST","error_description":"Insufficient rights"}
Converted to ApiException is unable to deserialize on
|
$data = ObjectSerializer::deserialize( |
and produce InvalidArgumentException