Skip to content

Instantly share code, notes, and snippets.

@erickgnavar
Created August 4, 2024 20:17
Show Gist options
  • Save erickgnavar/024384fe9513816df2aa2db3a71de3b4 to your computer and use it in GitHub Desktop.
Save erickgnavar/024384fe9513816df2aa2db3a71de3b4 to your computer and use it in GitHub Desktop.
(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