Sometimes Response object has string values in bool parameters.
E.g. in good conditions when I try to get order list by URL like
https://demo.retailcrm.ru/api/v4/orders?apiKey=...
I see in JSON in response object success parameter with value true (type is bool):
{
...
"success": true
...
}
But when something is wrong (just lost one symbol from account name)
https://dem.retailcrm.ru/api/v4/orders?apiKey=..
in JSON I see string value "false" of success parameter:
{
"errorMsg": "Account does not exist.",
"success": "false"
}
Sometimes Response object has string values in bool parameters.
E.g. in good conditions when I try to get order list by URL like
https://demo.retailcrm.ru/api/v4/orders?apiKey=..
. I see in JSON in response object success parameter with value true (type is bool):But when something is wrong (just lost one symbol from account name)
https://dem.retailcrm.ru/api/v4/orders?apiKey=..
in JSON I see string value "false" of success parameter:In bad way
ApiResponse::getSuccess()
works wrong.