Hi
Below response is returned by API.
{"status":true,"message":"Shipment Cancelled"}
I want to display message Shippment Cancelled, else if status = false then error message
IRestResponse response = client.Execute(request);
Thanks
Hi
Below response is returned by API.
{"status":true,"message":"Shipment Cancelled"}
I want to display message Shippment Cancelled, else if status = false then error message
IRestResponse response = client.Execute(request);
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pasang TamangPosted Jan 12, 2023, 8:20 AM
Hi,
You can create a class for the response and deserialize object using Newtonsoft.Json. Please refer to below code.
Regards,
Pasang