Hi
How to pass textbox values instead of hardcode in below code
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
var body = @"{" + "\n" +
@" ""email"" : ""[email protected]""," + "\n" +
@" ""password"" : ""Tmp023""" + "\n" +
@"}";
Thanks
Vishal JoshiPosted Dec 21, 2022, 7:01 AM
Hello
You can try like below code for the RestAPI call from C#.
Thank You
Sachin SinghPosted Dec 21, 2022, 6:31 AM
"+txtEmail.Text+" not working?