我一直在尝试创建一个简单的原型Web应用程序,该应用程序使用RestSharp调用Rest API。
我没有找到一个好的例子。 请问有人可以分享并指导我正确的资源吗? 我已经查看了以下内容,但没有提供我所需的完全功能示例:
http://restsharp.org/(没有带有示例的完整应用程序)
http://www.stum.de/2009/12/22/using-restsharp-to-consume-restful-web-services/(似乎已过时)
在原型设计期间,我对下面的代码出现以下错误:
RestResponse response = client.Execute(request);
*Cannot implicitly convert type 'IRestResponse' to 'RestResponse'. An explicit conversion exists (are you missing a cast?) *