Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Minor fixes to example

  • Loading branch information...
commit 838e21215442ac4c914a437d10ac570eb6493cab 1 parent d625403
Jim Crossley jcrossley3 authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 README.md
4 README.md
Source Rendered
@@ -75,7 +75,7 @@ Just add the following to your project.clj file in the _dependencies_ section:
75 75 [twitter.callbacks.handlers]
76 76 [twitter.api.streaming])
77 77 (:require
78   - [clojure.contrib.json :as json]
  78 + [clojure.data.json :as json]
79 79 [http.async.client :as ac])
80 80 (:import
81 81 (twitter.callbacks.protocols AsyncStreamingCallback)))
@@ -93,7 +93,7 @@ Just add the following to your project.clj file in the _dependencies_ section:
93 93 ; supply a callback that only prints the text of the status
94 94 (def ^:dynamic
95 95 *custom-streaming-callback*
96   - (AsyncStreamingCallback. (comp println #(:text %) json/read-json bodypart-print)
  96 + (AsyncStreamingCallback. (comp println #(:text %) json/read-json #(str %2))
97 97 (comp println response-return-everything)
98 98 exception-print))
99 99

0 comments on commit 838e212

Please sign in to comment.
Something went wrong with that request. Please try again.