Created
August 4, 2024 20:41
-
-
Save erickgnavar/54a9f5999cc02538ac38fe0daa9cfeb7 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 filename file files) | |
(puthash "files" files 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)))) | |
(defun my/gist-handle-response () | |
"Process content of RESPONSE and extract link." | |
(interactive) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment