From 950a71a7e89efe48804a89322f9a974610d40770 Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Sun, 23 Apr 2017 00:51:49 -0400 Subject: Rewrite mastodon-auth - Remove client functions - Use mastodon-http--post - No more callback spaghetti --- lisp/mastodon-http.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lisp/mastodon-http.el') diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el index 582f3a8..e6e5549 100644 --- a/lisp/mastodon-http.el +++ b/lisp/mastodon-http.el @@ -131,7 +131,7 @@ Authorization header is included by default." args "&"))) (url-request-extra-headers - `(("Authorization" . ,(concat "Bearer " (mastodon--access-token))) + `(("Authorization" . ,(concat "Bearer " mastodon-auth--token)) ,headers))) (with-temp-buffer (url-retrieve-synchronously url)))) @@ -143,7 +143,7 @@ Pass response buffer to CALLBACK function." (let ((url-request-method "GET") (url-request-extra-headers `(("Authorization" . ,(concat "Bearer " - (mastodon--access-token)))))) + (mastodon-auth--access-token)))))) (url-retrieve-synchronously url))) (defun mastodon-http--get-json (url) -- cgit v1.2.3