c# - Twitter API - OOB Flow -
i'm developing mobile application needs access twitter. there's ton of documentation relating using twitter api web apps, i'm having hard time finding correct flow or examples using out-of-band/pin code mode desktop & mobile applications.
can point me link or code examples (preferebly in c#) can show me how use twitter api desktop or mobile application?
thanks.
there description of oob flow in glossary section @ bottom of http://dev.twitter.com/pages/auth
out of band mode - instead of providing url-based callback when acquiring request token, "oob" supplied. once user has given twitter account credentials, presented screen containing pin code , asked enter code application. application sends pin oauth_verifier access token step complete exchange.
what means in practice, compared normal web flow:
- in step (a) app starts flow opening browser window oauth flow, sends request param of
oauth_callback=oob
rather callback url - step (c) ends twitter displaying authorization result page containing pin user (rather making callback app normal web flow)
- step (d) requires user copy / type pin twitter authentication page app (your app needs kind of "waiting authorization code..." screen :)
- step (e) app sends pin entered user twitter in
oauth_verifier
param access token.
try oauthconsumerwpf sample in dotnetopenauth http://www.dotnetopenauth.net/ example of oauth consumer code should able modify.
Comments
Post a Comment