| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
Initializing will retrieve user preferences/authentication. We do not
need this.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
specified (for network-wide searches).
Remove :warning, drop back to :debug
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now requires `'sx-auth` to account for authentication.
(sx-method-call) is now defined using `cl-defun` and uses keys rather
than positional arguments.
Authentication logic is performed in `sx-method-call` to ensure commands
are only passed on once they are needed.
When access token is available:
- Filters will be used as provided
- Methods will be called
When access token is unavailable:
- Filters will downgrade to only request object that do not require
auth.
- Methods will instead use `sx-request-fallback` and return nil.
If auth is not specified but is required, `sx-method-call` will throw an
error. If auth is specified as `'warn`, `user-error` will be called.
(sx-request--build-keyword-arguments) has been simplified. It will
always pass an available access_token (api indicates doing so will use a
user/key quota rather than simply key quota).
(sx-request-make) now performs url retrieval directly. Query
construction is all performed by `sx-method-call`.
|
|
|
|
|
| |
Logic now verifies `include` if `include`,`exclude`,`base` is used.
Otherwise verify entire filter.
|
| |
|
|
|
|
| |
specified.
|
|
|
|
|
|
|
| |
sx-auth-filter-auth now returns a filter that will not require auth for
use when auth not available.
Add a few known auth-required types.
|
|
|
|
|
| |
Currently no filter items are defined pending confirmation of which
require it.
|
| |
|
|
|
|
| |
Also run checkdoc on sx.el
|
|\
| |
| | |
Mark as read with "m"
|
|/
|
|
| |
Fixes #61
|
|\
| |
| | |
Hidden questions
|
| |\ |
|
| | | |
|
| | |
| | |
| | |
| | | |
Also improve read question code.
|
| | | |
|
|\ \ \
| | | |
| | | | |
Provide cache invalidation
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(sx-cache--invalidate): Invalidate provided cache. Allows for
invalidating variables associated with cache using `makunbound`. Cache
can be reinitialized using arg `init-method`.
(sx-cache-invalidate-all): Invalidate all caches then call
`sx-initialize` to reinitialize. Arg `save-auth` prevents access_token
from being lost.
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Implements indication of starred questions in question-list
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
`sx-question-list-favorite` inherits face from
`sx-question-list-score-upvoted`
Favorite is displayed using char \x2b26 WHITE MEDIUM DIAMOND.
|
|\ \ \
| |/ /
|/| | |
Update sx-networks and sx-favorites to use sx-initialize
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Simplify initialization since it is run at startup rather than tested
for by functions.
Clean up (sx-favorites--update-site-favorites) to provide the same
values for new sites as for existing.
|
| | | |
|
|/ /
| |
| |
| |
| | |
Turned (sx-network--ensure-user) into (sx-network--initialize) and added
as hook for initialization.
|
|\|
| |
| | |
Functionality for retrieving network information and keeping track of favorite questions.
|
| |
| |
| |
| | |
Use sharp quote for function.
|
| |
| |
| |
| |
| | |
Correct file header.
Use sharp quote for function.
|
| | |
|
| |
| |
| |
| |
| | |
sx-favorites--user-favorite-list: Clarify docstring
(sx-favorites--ensure-favorite-list): Remove extraneous argument
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
(sx-network--get-associated): Ensure user-sites is also set when
retrieving cache.
(sx-network--ensure-user): Simplify. Used to ensure cache is loaded
before attempting to use it.
Fix quoted lambda in sx-network--map-site-url-to-site-api.
|
| |
| |
| |
| |
| |
| | |
sx-cache-set.
Fix provides lines (missed quote on symbol).
|
| |
| |
| |
| |
| | |
- sx-network--user-information is a var not a function
- remember to setq sx-network--user-sites.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
sx-favorites--ensure-favorite-list: List of favorites in format (SITE
QUESTION_ID QUESTION_ID ...).
(sx-favorites--update-site-favorites): Update favorites for given SITE.
(sx-favorites-update): Update favorites for all networks user has an
account on.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
sx-network--user-information: User query from site.
sx-network--user-sites: List of sites user is active on for use when
querying sites.
(sx-network--ensure-user): Ensures network-user cache is available for
use.
(sx-network--update): Retrieve most recent network user information.
|
|\ \
| |/
|/| |
Question mode keybindings++
|
| |\
| |/
|/| |
|
|\ \
| | |
| | | |
Updated `sx-request-make` to use a consistent format for both `POST` and `GET` methods
|
| | |
| | |
| | |
| | | |
creating a request.
|
| | |
| | |
| | |
| | |
| | |
| | | |
alist)` error.
Moved `api-key` to let binding rather than directly in if statement.
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
If `need-auth` is `'warn`, break with `user-error` to advise the user
to authenticate. Otherwise the query will result in an `Error 401`.
|
| | | | |
|