Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Posting with multiple parameters to webapi using RestSharp
Pramod Thakur
Mar 11 2015 2:10 AM
2.1k
Reply
Hi,
I am new to webapi. I am using restsharp for calling api.
var client = _restSharp.CreateClient(ConfigurationManager.AppSettings["ApiURL"]);
var request = _restSharp.CreateRequest("Customer/GetCustomer", Method.POST);
request.RequestFormat = DataFormat.Json;
request.AddBody(Info);
var response = client.Execute(request);
string responseValue = response.Content;
This works fine for me. I want to pass one more parameter as object or as hashtable. How i do that.
Please do the needful ASAP.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Request / reponse parameters
Got Exception while Reading DB by WCF Service