aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-http.el
diff options
context:
space:
mode:
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)