Skip to content

Instantly share code, notes, and snippets.

View maxweber's full-sized avatar

Max Weber maxweber

View GitHub Profile
@maxweber
maxweber / gist:845123
Created February 26, 2011 11:24
Slurping something from the Facebook Graph API into a Clojure data structure
user> (use 'clojure.contrib.json)
nil
user> (read-json (slurp "https://graph.facebook.com/btaylor"))
{:id "220439",
:name "Bret Taylor",
:first_name "Bret",
:last_name "Taylor",
:link "http://www.facebook.com/btaylor",
:gender "male",
:locale "en_US"}
@maxweber
maxweber / gist:843901
Created February 25, 2011 15:03
Slurping something from the Facebook Graph API
user> (slurp "https://graph.facebook.com/btaylor")
"{\"id\":\"220439\",
\"name\":\"Bret Taylor\",
\"first_name\":\"Bret\",
\"last_name\":\"Taylor\",
\"link\":\"http:\\/\\/www.facebook.com\\/btaylor\",
\"gender\":\"male\",
\"locale\":\"en_US\"}"