diff options
author | Johnson Denen <johnson.denen@gmail.com> | 2017-05-18 13:31:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 13:31:01 -0400 |
commit | a9e595142eee69fe84f0ab06f7fde76cef27cdac (patch) | |
tree | 8cab32b1228283bdad86f426e346c5aa9ad41368 /lisp/mastodon-http.el | |
parent | 9ccc0e8cf74b938493753e2b64f95591f771de44 (diff) | |
parent | 8c841d2ad3d60997f7aea725da86b83ac80dcd61 (diff) |
Merge pull request #135 from jdenen/develop
Release 0.7.0
Diffstat (limited to 'lisp/mastodon-http.el')
-rw-r--r-- | lisp/mastodon-http.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/mastodon-http.el b/lisp/mastodon-http.el index dbbad4f..1e6e037 100644 --- a/lisp/mastodon-http.el +++ b/lisp/mastodon-http.el @@ -2,7 +2,7 @@ ;; Copyright (C) 2017 Johnson Denen ;; Author: Johnson Denen <johnson.denen@gmail.com> -;; Version: 0.6.3 +;; Version: 0.7.0 ;; Package-Requires: ((emacs "24.4")) ;; Homepage: https://github.com/jdenen/mastodon.el @@ -30,15 +30,16 @@ ;;; Code: (require 'json) +(defvar mastodon-instance-url) +(defvar mastodon-auth--token) +(autoload 'mastodon-auth--access-token "mastodon-auth") -(defgroup mastodon-http nil - "HTTP requests and responses for Mastodon." - :prefix "mastodon-http-" - :group 'mastodon) +(defvar mastodon-http--api-version "v1") (defun mastodon-http--api (endpoint) "Return Mastondon API URL for ENDPOINT." - (concat mastodon-instance-url "/api/" mastodon--api-version "/" endpoint)) + (concat mastodon-instance-url "/api/" + mastodon-http--api-version "/" endpoint)) (defun mastodon-http--response () "Capture response buffer content as string." |