Simplest and most concise Twitter OAuth implementation(twoism.posterous.com)
twoism.posterous.com
Simplest and most concise Twitter OAuth implementation
http://twoism.posterous.com/a-no-bullshit-twitter-oauth-example
4 comments
On the other hand, you've done a beautiful job at showing how simple OAuth can be.
That seems to be the main reason for sharing the code ("unoptimized and ugly code, walking you through Twitter's OAuth madness" and "All I wanted was a pseudo-code example of the steps involved in the auth process"). Seeing it laid out in a step-by-step piece of code helps you grok the process for either building your own independent work or using other libraries. This is pseudocode that just happens to be Ruby code too ;-) It's far too unstructured for you to realistically be using verbatim in your app.
That seems to be the main reason for sharing the code ("unoptimized and ugly code, walking you through Twitter's OAuth madness" and "All I wanted was a pseudo-code example of the steps involved in the auth process"). Seeing it laid out in a step-by-step piece of code helps you grok the process for either building your own independent work or using other libraries. This is pseudocode that just happens to be Ruby code too ;-) It's far too unstructured for you to realistically be using verbatim in your app.
Just for fun, I thought I'd round it out by implementing the last two steps of OAuth (sending the user to Twitter and exchanging a PIN for an access token) since somebody else already did all the hard work :D
https://gist.github.com/564687/
https://gist.github.com/564687/
Awesome, thanks! I'll update the gist.
On the other hand, you've done a beautiful job at showing how simple OAuth can be. If I ever want to write a twitter client in Io or something, I'll definitely be ripping off your (apparently still copyrighted) code to do it.