diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-17 22:33:07 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-17 22:33:07 +0000 |
commit | 3e17a40c0701dcd3cfa03141b2669abeb55e160a (patch) | |
tree | 2d2003fa91889bb54f0beeb4dac5232b99cb788b /sx-auth.el | |
parent | 34d28e79f4a6049dc4ceb44397a2ca0725cecd5f (diff) | |
parent | 278fa010e6a63474fce6bf46aaf3327b0d9cf7f7 (diff) |
Merge branch 'master' into question-mode-keybindings++
Diffstat (limited to 'sx-auth.el')
-rw-r--r-- | sx-auth.el | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -28,7 +28,7 @@ (require 'sx-cache) (defconst sx-auth-root - "https://stackexchange.com/oauth/") + "https://stackexchange.com/oauth/dialog") (defconst sx-auth-redirect-uri "http://vermiculus.github.io/stack-mode/auth/auth.htm") (defconst sx-auth-client-id @@ -50,15 +50,17 @@ questions)." (interactive) (setq sx-auth-access-token - (let ((url (sx-request-build - "dialog" - `((client_id . ,sx-auth-client-id) - (scope . (read_inbox - no_expiry - write_access)) - (redirect_uri . ,(url-hexify-string - sx-auth-redirect-uri))) - "," sx-auth-root))) + (let ((url (concat + sx-auth-root + "?" + (sx-request--build-keyword-arguments + `((client_id . ,sx-auth-client-id) + (scope . (read_inbox + no_expiry + write_access)) + (redirect_uri . ,(url-hexify-string + sx-auth-redirect-uri))) + ",")))) (browse-url url) (read-string "Enter the access token displayed on the webpage: "))) (if (string-equal "" sx-auth-access-token) |