aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 3fe47c9..58f6c7e 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -115,11 +115,12 @@ Pass response buffer to CALLBACK function."
(url-retrieve-synchronously url))))
(defun mastodon-http--get-json (url)
- "Make GET request to URL. Return JSON response"
+ "Make GET request to URL. Return JSON response."
(with-current-buffer (mastodon-http--get url)
(mastodon-http--process-json)))
(defun mastodon-http--process-json ()
+ "Process JSON response."
(goto-char (point-min))
(re-search-forward "^$" nil 'move)
(let ((json-string
@@ -134,7 +135,7 @@ Pass response buffer to CALLBACK function."
(defun mastodon-http--get-async (url &optional callback &rest cbargs)
"Make GET request to URL.
-Pass response buffer to CALLBACK function."
+Pass response buffer to CALLBACK function with args CBARGS."
(let ((url-request-method "GET")
(url-request-extra-headers
`(("Authorization" . ,(concat "Bearer "