Created
August 4, 2024 20:17
-
-
Save erickgnavar/024384fe9513816df2aa2db3a71de3b4 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
(puthash "content" content file) | |
(puthash filename file files) | |
(puthash "files" files payload) | |
(message (json-encode payload)) | |
(let ((url-request-method "POST") | |
(url-request-extra-headers `(("Content-Type" . "application/json") ("User-Agent" . "gist.el") ("Authorization" . ,(concat "Bearer " oauth-token)))) | |
(url-request-data (json-encode payload))) | |
(url-retrieve "https://api.github.com/gists" 'my/gist-handle-response)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment