Skip to content

Instantly share code, notes, and snippets.

@DuqueDeTuring
Created April 30, 2015 04:03
Show Gist options
  • Save DuqueDeTuring/fe345acdcc2734c7fb40 to your computer and use it in GitHub Desktop.
Save DuqueDeTuring/fe345acdcc2734c7fb40 to your computer and use it in GitHub Desktop.
Enviar un mensaje a HipChat en Clojure utilizando clj-http.client
;; Configuración en environ
(client/post (env :hipchat-url)
{:query-params {:auth_token (env :hipchat-auth-token)
:format "json"}
:form-params {:room_id room_id
:notify 1
:color (if error "red")
:from "departede"
:message "MENSAJE"}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment