aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-10-02 13:15:58 +0200
committermousebot <mousebot@riseup.net>2021-10-02 13:15:58 +0200
commitd13fa5fb1a4f41db6c97927776c79194f7bc9da6 (patch)
treed64c50096c86b7eede7b750eea95276a3f05e849 /lisp/mastodon-http.el
parenta311de00bd4fb2ad467c955e1fa12fd5613b58b2 (diff)
flycheck: docstrings, autoloads, declarations
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index cd89cc5..abd9af0 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -191,7 +191,9 @@ Pass response buffer to CALLBACK function."
;; hard coded just for bio note for now:
(defun mastodon-http--patch (base-url &optional note)
- "Make synchronous PATCH request to URL.
+ "Make synchronous PATCH request to BASE-URL.
+
+Optionally specify the NOTE to edit.
Pass response buffer to CALLBACK function."
(let ((url-request-method "PATCH")
@@ -228,6 +230,8 @@ Pass response buffer to CALLBACK function with args CBARGS."
(defun mastodon-http--post-async (url args headers &optional callback &rest cbargs)
"POST asynchronously to URL with ARGS and HEADERS.
+Then run function CALLBACK with arguements CBARGS.
+
Authorization header is included by default unless UNAUTHENTICED-P is non-nil."
(let ((url-request-method "POST")
(request-timeout 5)