Example application for how to use the KOAuth library as OAuth consumer in Scala. Authenticates you in Twitter and displays your latest tweet.
See it acting right away on Heroku!
git clone https://github.com/kovacshuni/koauth-samples.git
cd koauth-samples/scala-consumer-scalatra
sbt
container:start
Go to http://127.0.0.1:4567/requestToken and after a series of steps you should see your latest tweet as a result.
- Requests a request token from the Twitter API
- Redirects you to Twitter's authorization page, where you have to autorize your key.
- Redirects you back to this app, exchanging your authorized request token to an access token.
- Redirects you to this apps endpoint which, using your new acces key, retrieves and displays your last tweet.