Created
November 27, 2013 15:02
-
-
Save anonymous/7677135 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn get-follower-ids [id] | |
(get-in (followers-ids :oauth-creds my-creds :params {:count 2 :user_id id}) [:body :ids])) | |
(defn followers-followers [depth id] | |
(if (< depth 3) | |
(vector (map #(followers-followers % (inc depth)) (get-follower-ids id)))))) | |
user> (map #(followers-followers % (inc 0)) (get-follower-ids 121733901)) | |
(nil nil) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment