I'm developing a mobile application that needs access to Twitter. There's a ton of documentation relating to using the Twitter API with web apps, but I'm having a hard time finding the correct flow or any examples using out-of-band/PIN code mode for desktop & mobile applications.
Can anyone point me to a link or some code examples (preferebly in C#) that can show me how to use the Twitter API from a desktop or mobile application?
Thanks.
There is some description of OOB flow in the Glossary section at the bottom of http://dev.twitter.com/pages/auth
out of band mode - Instead of providing a URL-based callback when acquiring a request token, "oob" is supplied. Once the user has given Twitter their account credentials, they are presented with a screen containing a PIN code and are asked to enter this code into the application. The application then sends this PIN as an oauth_verifier to the access token step to complete the exchange.
What that means in practice, compared to the normal web flow:
oauth_callback=oob
rather than a callback URLoauth_verifier
param to get an access token.Try the OAuthConsumerWpf sample in DotNetOpenAuth http://www.dotnetopenauth.net/ for an example of OAuth Consumer code that you should be able to modify.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With