Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor fixes to example

  • Loading branch information...
commit 838e21215442ac4c914a437d10ac570eb6493cab 1 parent d625403
@jcrossley3 jcrossley3 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -75,7 +75,7 @@ Just add the following to your project.clj file in the _dependencies_ section:
[twitter.callbacks.handlers]
[twitter.api.streaming])
(:require
- [clojure.contrib.json :as json]
+ [clojure.data.json :as json]
[http.async.client :as ac])
(:import
(twitter.callbacks.protocols AsyncStreamingCallback)))
@@ -93,7 +93,7 @@ Just add the following to your project.clj file in the _dependencies_ section:
; supply a callback that only prints the text of the status
(def ^:dynamic
*custom-streaming-callback*
- (AsyncStreamingCallback. (comp println #(:text %) json/read-json bodypart-print)
+ (AsyncStreamingCallback. (comp println #(:text %) json/read-json #(str %2))
(comp println response-return-everything)
exception-print))
Please sign in to comment.
Something went wrong with that request. Please try again.