A Scalaz wrapper for Twitter API.
Scala
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
core/src
plugin/src/main/scala/twitter4z
project
tetris/src/main/scala/twitter4z/tetris
.gitignore
README.md
build.sbt

README.md

Twitter4z

A Scalaz wrapper for Twitter API.

Examples

Usage

Simple

import twitter4z.Twitter

Twitter.publicTimeline.unsafe

Monadic

import scalaz._
import Scalaz._
import Validation.Monad._

val w = for {
  statuses <- twitter.homeTimeline()
   _ <- twitter.updateStatus("@%s Hello!".format(statuses.head.user.screenName))()
 } yield statuses

w.value

Authorization

val consumer = Twitter.cosumer(key, secret)

val token = Twitter.requestToken(consumer)

val url = Twitter.authorizeURI(token)

val twitter = Twitter(consumer, token, "XXXXXXX")

twitter.updateStatus("Twitter4z!")

Option

twitter.homeTimeline.page(2).count(50)

Source

http://halcat0x15a.github.com/twitter4z/core/target/scala-2.9.1/classes.sxr/index.html