forgot one file
This commit is contained in:
parent
9a4d754a1d
commit
f6497432a3
1 changed files with 4 additions and 3 deletions
|
@ -19,10 +19,11 @@
|
||||||
(s/def ::include-replies? boolean?)
|
(s/def ::include-replies? boolean?)
|
||||||
(s/def ::account string?)
|
(s/def ::account string?)
|
||||||
(s/def ::accounts (s/* ::account))
|
(s/def ::accounts (s/* ::account))
|
||||||
(def twitter-config? (s/keys :req-un [::access-keys ::include-rts? ::include-replies?]))
|
(def twitter-auth? (s/keys :req-un [::access-keys]))
|
||||||
|
(def twitter-transform? (s/keys :req-un [::include-rts? ::include-replies?]))
|
||||||
|
|
||||||
(defn-spec twitter-client any?
|
(defn-spec twitter-client any?
|
||||||
[twitter-config twitter-config?]
|
[twitter-config twitter-auth?]
|
||||||
(let [{:keys [access-keys]} twitter-config]
|
(let [{:keys [access-keys]} twitter-config]
|
||||||
(try
|
(try
|
||||||
(twitter. (clj->js access-keys))
|
(twitter. (clj->js access-keys))
|
||||||
|
@ -51,7 +52,7 @@
|
||||||
:media-links (keep #(when (= (:type %) "photo") (:media_url_https %)) media)})
|
:media-links (keep #(when (= (:type %) "photo") (:media_url_https %)) media)})
|
||||||
|
|
||||||
(defn-spec user-timeline any?
|
(defn-spec user-timeline any?
|
||||||
[twitter-config twitter-config?
|
[twitter-config twitter-auth?
|
||||||
account ::account
|
account ::account
|
||||||
callback fn?]
|
callback fn?]
|
||||||
(let [{:keys [include-rts? include-replies?]} twitter-config]
|
(let [{:keys [include-rts? include-replies?]} twitter-config]
|
||||||
|
|
Reference in a new issue