Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Hotfix: Go back to https for data | Artur Malabarba | 2015-01-08 | 1 | -1/+1 |
| | |||||
* | Use http instead of https for our data requests | Artur Malabarba | 2015-01-07 | 1 | -2/+2 |
| | |||||
* | Merge pull request #204 from vermiculus/issue-137-tag-completion | Sean Allred | 2015-01-07 | 1 | -0/+29 |
|\ | | | | | Issue 137 tag completion | ||||
| * | Implement sx-request-get-data for getting data from the data branch. | Artur Malabarba | 2015-01-05 | 1 | -0/+29 |
| | | |||||
* | | Hotfix kill response buffers after request | Sean Allred | 2015-01-06 | 1 | -0/+1 |
| | | |||||
* | | Add process-function arg to request-fallback. Fix #205 | Artur Malabarba | 2015-01-05 | 1 | -1/+3 |
|/ | |||||
* | Standardize local variables | Sean Allred | 2015-01-04 | 1 | -1/+5 |
| | | | | | - Move lexical-binding to top of file; fixes #123 - Use indent-tabs-mode: nil for all files | ||||
* | Use symbols for url-request-method | Sean Allred | 2015-01-04 | 1 | -2/+2 |
| | |||||
* | Fix indentation | Sean Allred | 2015-01-03 | 1 | -1/+1 |
| | |||||
* | Remove process-function from request-all-items | Sean Allred | 2015-01-02 | 1 | -2/+2 |
| | | | | It doesn't really make sense. | ||||
* | Use variable instead of default for request-delay | Sean Allred | 2015-01-02 | 1 | -5/+8 |
| | |||||
* | Declare indentation patterns for request functions | Sean Allred | 2015-01-02 | 1 | -0/+2 |
| | |||||
* | Introduce anti-throttling delay | Sean Allred | 2015-01-02 | 1 | -2/+5 |
| | |||||
* | Consolidate state changes | Sean Allred | 2015-01-02 | 1 | -3/+3 |
| | |||||
* | Introduce `sx-request-all-items' | Sean Allred | 2015-01-02 | 1 | -0/+32 |
| | | | | | | | This function repeatedly makes API requests until a condition is satisfied (such as 'no more items'). First and foremost, this will allow us to retrieve all tags for a site. | ||||
* | Add process-function to sx-request-make | Sean Allred | 2015-01-02 | 1 | -4/+12 |
| | |||||
* | Fix typo | Sean Allred | 2014-12-30 | 1 | -1/+1 |
| | |||||
* | Handle utf-8 encoding the right way. | Artur Malabarba | 2014-12-20 | 1 | -7/+12 |
| | |||||
* | Prefer zlib-decompress-region when available. | Artur Malabarba | 2014-12-20 | 1 | -5/+10 |
| | | | | Fix #157 | ||||
* | Indentation was off by one | Artur Malabarba | 2014-12-20 | 1 | -34/+34 |
| | |||||
* | _ indicates a variable is ignored. | Artur Malabarba | 2014-12-15 | 1 | -1/+1 |
| | |||||
* | Improve some header comments. | Artur Malabarba | 2014-12-06 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into issue-130 | Sean Allred | 2014-12-03 | 1 | -11/+5 |
|\ | | | | | | | | | | | | | Conflicts: sx-request.el Conflict was trivial. | ||||
| * | Remove need-auth from sx-request--build-keyword-arguments | Artur Malabarba | 2014-11-29 | 1 | -11/+5 |
| | | |||||
* | | Hexify value in key-value pairs | Sean Allred | 2014-12-02 | 1 | -1/+1 |
| | | | | | | | | Fixes #130 | ||||
* | | Prune unused parameter | Sean Allred | 2014-12-02 | 1 | -1/+1 |
|/ | |||||
* | Fix #111 | Sean Allred | 2014-11-27 | 1 | -2/+2 |
| | |||||
* | Fix docstring/argument list ordering (mistake during merge). | Jonathan Leech-Pepin | 2014-11-21 | 1 | -3/+3 |
| | | | | | Fix `url-automatic-caching` to use `t` rather than `sx-request-cache-p` (used in tests only). | ||||
* | Merge branch 'master' into sx-method-auth. Conflicts have been | Jonathan Leech-Pepin | 2014-11-21 | 1 | -20/+70 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | 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 | ||||
| * | GitHub comments -- #77 | Sean Allred | 2014-11-20 | 1 | -8/+8 |
| | | |||||
| * | Use `user-error' when there's no question at point | Sean Allred | 2014-11-19 | 1 | -0/+1 |
| | | |||||
| * | Remove -cache-p | Sean Allred | 2014-11-19 | 1 | -6/+1 |
| | | |||||
| * | Minor typos and incorrect information | Sean Allred | 2014-11-19 | 1 | -2/+2 |
| | | |||||
| * | Add `customize' data | Sean Allred | 2014-11-19 | 1 | -2/+6 |
| | | |||||
| * | Merge branch 'master' into documentation | Sean Allred | 2014-11-19 | 1 | -30/+57 |
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: sx-method.el sx-question-list.el sx-question-mode.el sx-question.el sx-request.el sx.el | ||||
| * | | Documentation -- part three | Sean Allred | 2014-11-18 | 1 | -1/+3 |
| | | | | | | | | | | | | Source code is documented to the best of my knowledge and understanding. | ||||
| * | | Documentation -- part one | Sean Allred | 2014-11-17 | 1 | -20/+60 |
| | | | | | | | | | | | | Pushing this change to continue work elsewhere. | ||||
* | | | Properly return a nil entry when falling back | Jonathan Leech-Pepin | 2014-11-20 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | sx-request-make returns a nested list (or vector of lists). Return `'(())` to ensure it is an acceptable response. | ||||
* | | | sx-method-call rewritten and associated improvements in sx-request. | Jonathan Leech-Pepin | 2014-11-20 | 1 | -41/+24 |
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`. | ||||
* | | Change from `add-to-list` to `push` to avoid a strange `(void-variable | Jonathan Leech-Pepin | 2014-11-17 | 1 | -2/+3 |
| | | | | | | | | | | | | alist)` error. Moved `api-key` to let binding rather than directly in if statement. | ||||
* | | Adjust request keyword creation to verify if AUTH is needed. | Jonathan Leech-Pepin | 2014-11-17 | 1 | -16/+32 |
| | | | | | | | | | | If `need-auth` is `'warn`, break with `user-error` to advise the user to authenticate. Otherwise the query will result in an `Error 401`. | ||||
* | | Fix incorrect call to `call` rather than `request-url` | Jonathan Leech-Pepin | 2014-11-17 | 1 | -1/+1 |
| | | |||||
* | | Updated `sx-request-make` to use a consistent format for both `POST` and ↵ | Jonathan Leech-Pepin | 2014-11-14 | 1 | -20/+24 |
|/ | | | | | | | | | | | | | | | | | `GET` methods. (sx-request-make): Added optional arguments for using "POST" and AUTH when performing requests (sx-request--build-keyword-arguments): Add option of using AUTH and including in query when required. (sx-request-build): Removed (sx-request--request): New function to perform query with all variables let bound. sx-auth.el: Updated `sx-auth-root` to be full auth URL rather than lack method. (sx-auth-authenticate): Remove dependency on `sx-request-build` and perform construction inline. | ||||
* | Set `sx-request-api-root` to use `https` instead of `http`. | Jonathan Leech-Pepin | 2014-11-14 | 1 | -1/+1 |
| | | | | This will prevent loss of authentication token when using authentication. | ||||
* | Clean content at the request level | Sean Allred | 2014-11-14 | 1 | -1/+1 |
| | |||||
* | Remove spurious line | Sean Allred | 2014-11-12 | 1 | -1/+0 |
| | |||||
* | Update code to new assoc-let | Artur Malabarba | 2014-11-12 | 1 | -4/+5 |
| | |||||
* | Simplify logical structure | Sean Allred | 2014-11-11 | 1 | -1/+1 |
| | |||||
* | Include encoding functions | Sean Allred | 2014-11-10 | 1 | -0/+1 |
| | |||||
* | Proper GZIP testing | Sean Allred | 2014-11-10 | 1 | -17/+11 |
| | | | | | | | Test for a GZIP'd using magic bytes. See the appropriate answer on Emacs.SE (1) for details. (1): http://emacs.stackexchange.com/a/2978 |