diff options
author | Johnson Denen <johnson.denen@gmail.com> | 2017-04-07 09:33:39 -0400 |
---|---|---|
committer | jdenen <Johnson.Denen@ascenaretail.com> | 2017-04-09 08:53:21 -0400 |
commit | 54263c53842c8d68e587e5b5d79e14681698b00b (patch) | |
tree | 2765a64deea20520744f82735dc24d2070845f54 /lisp/mastodon.el | |
parent | e91facdb643a6a340207c51f648565fcfcb029d3 (diff) |
Restructure under lisp directory
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r-- | lisp/mastodon.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el new file mode 100644 index 0000000..b3946f8 --- /dev/null +++ b/lisp/mastodon.el @@ -0,0 +1,23 @@ +(load-file "mastodon-auth.el") +(load-file "mastodon-http.el") + +(defvar mastodon--api-version "v1") + +(defcustom mastodon-instance-url "https://mastodon.social" + "Base URL for the Masto instance from which you toot." + :group 'mastodon + :type 'string) + +;; TODO +(defcustom mastodon-token-file (concat user-emacs-directory "mastodon.plstore") + "File path where Mastodon access tokens are stored." + :group 'mastodon + :type 'file) + +(defvar mastodon--client-plist (mastodon--read-access-token-file) + "Stores CLIENT_ID, CLIENT_SECRET, and ACCESS_TOKEN. + +Reads values from `mastodon-token-file' if they exist.") + +(defvar mastodon--token (mastodon--read-or-get-access-token) + "API token for Mastodon.") |