TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pramod Thakur
272
6.8k
2.3m
Posting with multiple parameters to webapi using RestSharp
Mar 11 2015 2:10 AM
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.
Reply
Answers (
1
)
Request / reponse parameters
Got Exception while Reading DB by WCF Service