From 3442dd296a39a065fd1c15bb37e00e52d6d7e857 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sun, 8 Oct 2023 15:27:45 +0200 Subject: doctring for http--post --- lisp/mastodon-http.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lisp') 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 -- cgit v1.2.3