1
1
(ns twitter
2
- (:use [clojure.contrib.json. read]
2
+ (:use [clojure.contrib.json :only [ read-json] ]
3
3
[clojure.contrib.str-utils :only [re-gsub]]
4
- [clojure.contrib.java-utils :only [as-str]]
5
- [clojure.contrib.seq-utils :only [flatten]])
4
+ [clojure.contrib.java-utils :only [as-str]])
6
5
(:require [clojure.set :as set]
7
6
[com.twinql.clojure.http :as http]
8
7
[twitter.query :as query]
@@ -108,6 +107,16 @@ take any required and optional arguments and call the associated Twitter method.
108
107
:page ]
109
108
(comp #(:content %) status-handler))
110
109
110
+ (def-twitter-method home-timeline
111
+ :get
112
+ " twitter.com/statuses/home_timeline.json"
113
+ []
114
+ [:since-id
115
+ :max-id
116
+ :count
117
+ :page ]
118
+ (comp #(:content %) status-handler))
119
+
111
120
(def-twitter-method mentions
112
121
:get
113
122
" twitter.com/statuses/mentions.json"
@@ -268,7 +277,7 @@ take any required and optional arguments and call the associated Twitter method.
268
277
[]
269
278
(comp #(:content %) status-handler))
270
279
271
- (def-twitter-method verifiy -credentials
280
+ (def-twitter-method verify -credentials
272
281
:get
273
282
" twitter.com/account/verify_credentials.json"
274
283
[]
@@ -592,4 +601,4 @@ the Twitter API."
592
601
(fn [result]
593
602
(let [headers (into {} (:headers result))]
594
603
(when (= (headers " X-RateLimit-Remaining" ) " 0" )
595
- (handler-fn result)))))
604
+ (handler-fn result)))))
0 commit comments