How does one go about creating a c# wrapper for rest based service.
I want to access the rest based API at
http://Www.zomato.com
inside my Silverlight app.
Any guidance is appreciated.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would take a look at some examples, there are numerous ones out in the wild. The following is a great example for twilio’s rest api; it leverages RestSharp under the covers. RestSharp is a great libary (available via nuget) to help out with the heavy lifting of interacting with a web api.
Note: Microsoft is coming out with a richer HttpClient option in .net 4.5; in fact, you can get it now via nuget.