aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-19 11:15:20 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-19 11:15:20 +0100
commita9f0e504cf441db0fd311141c1a9433cf9a46be7 (patch)
tree117c930fc6fe761b6e7db24dbd7423307de57f0f /lisp/mastodon-http.el
parentecaf47eac07c94781dc7e4e48a89d223917f832e (diff)
parent653bf0e90b5f1b281d689f2411fda16876df0c0b (diff)
Merge branch 'develop' into lists
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 843afc1..d9e1d80 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -124,6 +124,11 @@ Unless UNAUTHENTICATED-P is non-nil."
args
"&"))
+(defun mastodon-http--build-array-args-alist (param-str array)
+ "Return parameters alist using PARAM-STR and ARRAY param values."
+ (cl-loop for x in array
+ collect (cons param-str x)))
+
(defun mastodon-http--post (url args headers &optional unauthenticated-p)
"POST synchronously to URL with ARGS and HEADERS.