Clojure client for Twitter API
Clojure
Switch branches/tags
Nothing to show
Pull request Compare This branch is 4 commits ahead, 54 commits behind mattrepl:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
.gitignore
LICENSE
README.markdown
build.xml

README.markdown

Twitter client API for Clojure

Access the Twitter API from Clojure.

Building

ant -Dclojure.jar="..." -Dclojure.contrib.jar="..."

Example

(require 'twitter
         ['oauth.client :as 'oauth])

;; Make a OAuth consumer
(def oauth-consumer (oauth/make-consumer <key>
                                         <secret>       
                                         "http://twitter.com/oauth/request_token"
                                         "http://twitter.com/oauth/access_token"
                                         "http://twitter.com/oauth/authorize"
                                         :hmac-sha1))

(def oauth-access-token 
     ;; Look up an access token you've stored away after the user
     ;; authorized a request token and you traded it in for an
     ;; access token.  See clj-oauth (http://github.com/mattrepl/clj-oauth) for an example.
;; Do the same for the token secret.

;; Post to twitter
(twitter/with-oauth oauth-consumer oauth-access-token oauth-token-secret
                    (twitter/update-status "posting from #clojure with #oauth"))

;; Find out who follows dons
(twitter/followers-of-name "dons")

Authors

Development funded by LikeStream LLC (Don Jackson and Shirish Andhare), see http://www.likestream.org/opensource.

Designed and developed by Matt Revelle of Lightpost Software.