| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
This also removes the sx-authenticate alias and renames
sx-auth-authenticate to sx-authenticate.
I did this because I felt it wasn't helpful to have both. Whenever I hit
`M-x sx-au <TAB>` the only completions offered were two identical, but
differently named, commands. That's useless at best, confusing at worst.
|
| |
|
|
|
|
| |
Fixes #115
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This addresses the apparent api bug which affected both the retrieval of
favorites and the site-switching. Se #82
As far as I can see, this issue affects ALL api calls, so it seems
reasonable that it should be fixed inside `sx-method-call`.
The usage of sx-method-call stays the same, only the internal has changed.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
resolved.
Logic and functions have been kept from the `cl-defun` `sx-method-call`
while docstrings have been updated as per #77 when possible.
Conflicts:
sx-auth.el
sx-method.el
sx-question.el
sx-request.el
|
| | |
|
| |\
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Conflicts:
sx-method.el
sx-question-list.el
sx-question-mode.el
sx-question.el
sx-request.el
sx.el
|
| | |
| | |
| | |
| | |
| | |
| | | |
We aren't using `stack-filter' anymore (in fact, we haven't since
filters became functional). Somehow it survived refactoring; this
commit fixes that oversight.
|
| | |
| | |
| | |
| | | |
Pushing this change to continue work elsewhere.
|
| | |
| | |
| | |
| | | |
Pushing this change to continue work elsewhere.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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`.
|
|/
|
|
| |
creating a request.
|
| |
|
|
|
|
|
| |
Conflicts:
sx-request.el
|
|
Keeping method calls within `sx-request.el' was causing circular
requirements.
This commit sorts through all of the requirements for each of the files
and ensures that this does not happen. Much of the content removed was
for `sx-request-default-keyword-arguments-alist' and related items. It
was unused, so it was pruned. If it is deemed necessary in the future,
it should be included in `sx-method.el'.
|