Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env scalas
- !#
- /***
- libraryDependencies += "com.github.hexx" %% "dispatch-tumblr" % "0.0.1"
- */
- import dispatch._
- import dispatch.oauth.Consumer
- import dispatch.json.JsHttp._
- import com.github.hexx.dispatch.tumblr._
- val consumer = Consumer("YOUR CONSUMER KEY", "YOUR CONSUMER SECRET")
- val username = "YOUR USERNAME"
- val password = "YOUR PASSWORD"
- val http = new Http
- val access_token = http(Auth.access_token(consumer, username, password))
- val res = http(User.dashboard(consumer, access_token) posttype "text" limit 5)
- res map Post.title foreach println
Add Comment
Please, Sign In to add comment