Skip to content

Instantly share code, notes, and snippets.

Created November 27, 2013 15:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7677135 to your computer and use it in GitHub Desktop.
Save anonymous/7677135 to your computer and use it in GitHub Desktop.
(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