aboutsummaryrefslogtreecommitdiff
path: root/sx-favorites.el
diff options
context:
space:
mode:
authorJonathan Leech-Pepin <jonathan.leechpepin@gmail.com>2014-11-20 13:18:44 -0500
committerJonathan Leech-Pepin <jonathan.leechpepin@gmail.com>2014-11-20 13:18:44 -0500
commite63d08fe75cff6e4b713a477408203351cc14e57 (patch)
tree989a586aaab421ba17d701858ec1e572f5a4148b /sx-favorites.el
parent6b94d5f8c2c5b187a458c1256d9b496a0378770f (diff)
Uses of `sx-method-call` have been updated to use new format.
sx-question now includes 2 authentication requiring parameters, `question.upvoted` and `question.downvoted`. These will only be used if access token exists. sx-favorites still uses site-workaround pending #82.
Diffstat (limited to 'sx-favorites.el')
-rw-r--r--sx-favorites.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/sx-favorites.el b/sx-favorites.el
index 3aa96dd..55ebf49 100644
--- a/sx-favorites.el
+++ b/sx-favorites.el
@@ -55,10 +55,10 @@ Added as hook to initialization."
(defun sx-favorites--retrieve-favorites (site)
"Obtain list of starred QUESTION_IDs for SITE."
- (sx-method-call (format "me/favorites?site=%s" site)
- nil
- sx-favorite-list-filter
- 'warn))
+ (sx-method-call 'me
+ :submethod (format "favorites?site=%s" site)
+ :filter sx-favorite-list-filter
+ :auth 'warn))
(defun sx-favorites--update-site-favorites (site)
"Update list of starred QUESTION_IDs for SITE.