- Jun 6, 2020
- 11,559
- 4,422
Hello,
B4A 11.50
I call API (written in PHP with Slim Framework) which returns value(s) with corresponding status code [=200, = 201, =422, =500 etc. ]. I need to read the result values whatever the return status code is.
API Call:
When the return status code is 200, ls_result contains the correct return value. [ Even on this error condition, we changed to return status to 200 ].
//ls_result = {"Status":422,"Result":"Failed","Message":"Version does not match"}
When the return status code is 422, ls_result contains some value, don't know where and how it gets.
//ls_result = {"Status":422,"Result":"Failed","Message":"Version value is empty. Pass Version"}
We don't know why this message is read, which is to be returned on another condition.
When checked in Postman, we get the correct values...
B4A 11.50
I call API (written in PHP with Slim Framework) which returns value(s) with corresponding status code [=200, = 201, =422, =500 etc. ]. I need to read the result values whatever the return status code is.
API Call:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
When the return status code is 200, ls_result contains the correct return value. [ Even on this error condition, we changed to return status to 200 ].
//ls_result = {"Status":422,"Result":"Failed","Message":"Version does not match"}
When the return status code is 422, ls_result contains some value, don't know where and how it gets.
//ls_result = {"Status":422,"Result":"Failed","Message":"Version value is empty. Pass Version"}
We don't know why this message is read, which is to be returned on another condition.
When checked in Postman, we get the correct values...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید