简体   繁体   English

WP8的FourSquare客户端库

[英]FourSquare Client library for WP8

Is there any foursquare client library available for Windows Phone 8. i checked the foursquare site and this client 'Sharp Square' but whenever i try to include it in my project i got the version incompatible error Windows Phone 8是否有可用的foursquare客户端库。我检查了foursquare网站和此客户端“ Sharp Square”,但是每当我尝试将其包含在我的项目中时,我都收到版本不兼容错误

install-package : Could not install package 'SharpSquare 1.0.0.2'. You are trying to
install this package into a project that targets 'WindowsPhone,Version=v8.0',
but the package does not contain any assembly references or content files that are
compatible with that framework.

i also tried adding the .dll after building the project but got the same error.. 在构建项目后,我也尝试添加.dll,但出现了相同的错误。

Loking at the source code of SharpSquare on GitHub ( https://github.com/TICLAB/SharpSquare ) there is no version that works with Windows Phone 8. 在GitHub( https://github.com/TICLAB/SharpSquare )上查看SharpSquare的源代码,没有适用于Windows Phone 8的版本。

You need to convert it to a Windows Phone library. 您需要将其转换为Windows Phone库。 It should not be difficult, just removing the unnecessary references to System.Web and making all the request asynchronous. 这不难,只需删除对System.Web的不必要的引用并使所有请求变为异步即可。 Here is my take on it, it compiles but I have not tested it: https://dl.dropboxusercontent.com/u/73642/SharpSquareWP8.zip 这是我的看法,它可以编译,但我尚未对其进行测试: https : //dl.dropboxusercontent.com/u/73642/SharpSquareWP8.zip

I think the best thing you can do is leverage Foursquare REST API https://developer.foursquare.com/docs/ 我认为您可以做的最好的事情就是利用Foursquare REST API https://developer.foursquare.com/docs/

And a library like RestSharp to work with them. 还有像RestSharp这样的库可以与他们合作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM