aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-10-13 16:00:16 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-10-13 16:00:16 +0200
commite0b2f1a5eb1dab3b99f974b030bdbb866bd48dae (patch)
tree36aed30830ffdfafe0d0b1c1127a26bc136478e0 /lisp/mastodon-http.el
parent3e0badc4af1b128e139d833f29cdc5ee643973cf (diff)
mastodon-http--api-search fun (search uses api v2)
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r--lisp/mastodon-http.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el
index 8741972..33f6012 100644
--- a/lisp/mastodon-http.el
+++ b/lisp/mastodon-http.el
@@ -53,6 +53,10 @@
(concat mastodon-instance-url "/api/"
mastodon-http--api-version "/" endpoint))
+(defun mastodon-http--api-search ()
+ "Return Mastodon API url for the /search endpoind (v2)."
+ (format "%s/api/v2/search" mastodon-instance-url))
+
(defun mastodon-http--response ()
"Capture response buffer content as string."
(with-current-buffer (current-buffer)