aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-http.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index f1213a1..94a24fc 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -128,9 +128,12 @@ Used for API form data parameters that take an array."
(cl-loop for x in array
collect (cons param-str x)))
-(defun mastodon-http--post (url &optional params headers unauthenticated-p json)
+(defun mastodon-http--post (url
+ &optional params headers unauthenticated-p json)
"POST synchronously to URL, optionally with PARAMS and HEADERS.
-Authorization header is included by default unless UNAUTHENTICATED-P is non-nil."
+Authorization header is included by default unless
+UNAUTHENTICATED-P is non-nil.If JSON, encode PARAMS as JSON for
+the request data."
(mastodon-http--authorized-request "POST"
(let* ((url-request-data
(when params