Hi Friends,
I have Post Api with querystring parameters.When I am testing it in the postman getting data but while implimenting API with PostAsync method not getting data from the API.
I tried with different ways of sending parameters to POST API method such as Dictionary , list key value pair and string content but I am not unable to get the data from the API.
?username=user&password=pass&from=2022-02-03&to=2022-02-04
how to acheive this functionality?
Naimish MakwanaPosted Feb 7, 2023, 5:19 PM
Hello Prasanna,
You can use RestClient in C#. Try below code.
Thanks
Naimish Makwana