Created
April 30, 2015 04:03
-
-
Save DuqueDeTuring/fe345acdcc2734c7fb40 to your computer and use it in GitHub Desktop.
Enviar un mensaje a HipChat en Clojure utilizando clj-http.client
This file contains hidden or 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
;; 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