Created
June 11, 2018 00:24
-
-
Save danielsz/bfffa118b9fa995c0afa19d6c92244d8 to your computer and use it in GitHub Desktop.
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
(defn new-paste | |
([s] | |
(new-paste s s s)) | |
([d n c] | |
(client/post "https://api.paste.ee/v1/pastes" {:form-params {:key api-key | |
:description d | |
:sections [{:name n | |
:contents c}]} | |
:socket-timeout 1000 | |
:conn-timeout 1000 | |
:throw-entire-message? true | |
:content-type :json | |
:as :json}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Group ID is sent with the result of the build (0 or 1)