Skip to content

Instantly share code, notes, and snippets.

@jmesnil
Created October 19, 2009 11:34
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 jmesnil/213301 to your computer and use it in GitHub Desktop.
Save jmesnil/213301 to your computer and use it in GitHub Desktop.
(defn verify-challenge
[callback mode topic challenge]
(let [url (build-callback-url callback mode topic challenge)]
(try
(= challenge (.trim (apply str (:body-seq (request url))))) 204
(catch Exception ex (failed-challenge callback (.getMessage ex))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment