问题
I'm looking for an OAuth 1.0a sample for .NET compact framework. Preferably .netcf 3.5 but 2.0 is fine too.
I'm looking to call oauth for the foursquare.com api (http://groups.google.com/group/foursquare-api/web/oauth)
回答1:
Here's someone's detailed blog post on how to write an OAuth 1.0a consumer on NetCF.
I've also opened a DotNetOpenAuth branch targeted at NetCF, although it's not ready yet.
回答2:
Check out DotNetOpenAuth. It's an open-source (Ms-PL) .NET library for OpenID and OAuth. Samples included. Not sure if it supports compact framework, though.
回答3:
Another library that provides oauth consumer and provider support is http://code.google.com/p/oauth-dot-net/
Also, there's a code project here that uses OAuth on Windows Mobile: ffwinmobile.codeplex.com Unfortunately it looks like it's oauth 1.0.
来源:https://stackoverflow.com/questions/1535058/looking-for-oauth-1-0a-sample-code-for-net-compact-framework