Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "http don't switch-to-buffer on response error" | marty hiatt | 2022-11-21 | 1 | -1/+1 |
| | | | | This reverts commit 3cbfab81c2619d37ec04ea3e92bf562d8415314a. | ||||
* | http don't switch-to-buffer on response error | marty hiatt | 2022-11-21 | 1 | -1/+1 |
| | |||||
* | http--post - make args + headers optional args | marty hiatt | 2022-11-19 | 1 | -2/+2 |
| | | | | also update all calls to it, no need for nil nil everywhere. | ||||
* | http build array args docstring | marty hiatt | 2022-11-19 | 1 | -1/+2 |
| | |||||
* | Merge branch 'develop' into lists | marty hiatt | 2022-11-19 | 1 | -0/+5 |
|\ | |||||
| * | refactor array params into -http--build-array-args-alist | marty hiatt | 2022-11-17 | 1 | -0/+5 |
| | | |||||
* | | add delete and edit lists | marty hiatt | 2022-11-16 | 1 | -0/+16 |
| | | |||||
* | | http--triage: add 404, don't process json in that case | marty hiatt | 2022-11-15 | 1 | -2/+5 |
| | | |||||
* | | make a start on lists | marty hiatt | 2022-11-15 | 1 | -5/+8 |
|/ | |||||
* | http vector docstrings | marty hiatt | 2022-11-10 | 1 | -2/+5 |
| | |||||
* | process-response: optionally JSON array as vector, for instance desc | marty hiatt | 2022-11-10 | 1 | -6/+6 |
| | |||||
* | http docstrings | marty hiatt | 2022-11-10 | 1 | -3/+6 |
| | |||||
* | opt no-headers arg, only fetch when nil | marty hiatt | 2022-11-09 | 1 | -8/+10 |
| | |||||
* | use a proper dotted alist for response headers list | marty hiatt | 2022-11-09 | 1 | -2/+2 |
| | |||||
* | --init: handle json or full response and handle Link header | marty hiatt | 2022-11-09 | 1 | -0/+1 |
| | |||||
* | http: add response layer to requests: | marty hiatt | 2022-11-09 | 1 | -25/+50 |
| | | | | | | | | | | | - response is a cons of JSON list and http response headers alist - existing --get-json functions now just car the response - we also process JSON array as a list not a vector - this should open the way to handling response headers if we want to, eg for paginating favorites with the Link: header | ||||
* | add headers arg to http--process-json and --get-json-async | marty hiatt | 2022-11-05 | 1 | -4/+13 |
| | |||||
* | Revert "remove unused --append-query-string" | marty hiatt | 2022-11-03 | 1 | -0/+7 |
| | | | | This reverts commit e2fd67b16104ab772a4ef962613cb9f3cb3cea52. | ||||
* | http.el docstrings | marty hiatt | 2022-10-31 | 1 | -6/+10 |
| | |||||
* | re-write --make-meta-fields-params to build normal params alist | marty hiatt | 2022-10-30 | 1 | -4/+2 |
| | |||||
* | working meta fields update | marty hiatt | 2022-10-29 | 1 | -2/+4 |
| | |||||
* | remove unused --append-query-string | marty hiatt | 2022-09-12 | 1 | -7/+0 |
| | |||||
* | factor out http--build-query-string for use PATCH reqs also | marty hiatt | 2022-09-12 | 1 | -14/+18 |
| | |||||
* | macro declare debug body for auth req | marty hiatt | 2022-09-12 | 1 | -0/+1 |
| | |||||
* | indentation and stale TODOs | marty hiatt | 2022-09-12 | 1 | -37/+37 |
| | |||||
* | use seq-empty-p and string-empty-p calls | marty hiatt | 2022-09-05 | 1 | -1/+1 |
| | |||||
* | -http: optional silent requests so we can actually message | marty hiatt | 2022-09-03 | 1 | -10/+10 |
| | |||||
* | http--patch: make general function, not just for note | marty hiatt | 2022-08-31 | 1 | -11/+8 |
| | | | | - this way we can build funs to change basic account options. | ||||
* | bump version in boilerplate | marty hiatt | 2022-08-27 | 1 | -1/+1 |
| | |||||
* | docstrings | marty hiatt | 2022-08-17 | 1 | -2/+3 |
| | |||||
* | restore (list (cons call in macro | marty hiatt | 2022-08-07 | 1 | -19/+19 |
| | |||||
* | expand authorized-request macro to hand POST requests | marty hiatt | 2022-08-07 | 1 | -26/+27 |
| | |||||
* | http: --authorized-request macro | marty hiatt | 2022-08-07 | 1 | -48/+46 |
| | |||||
* | Merge pull request '2FA login support' (#255) from ↵ | martianh | 2022-03-23 | 1 | -0/+8 |
|\ | | | | | | | | | | | Red_Starfish/mastodon-up.el:login into develop Reviewed-on: https://codeberg.org/martianh/mastodon.el/pulls/255 | ||||
| * | change '-' to '--' in between function and namespace names | Abhiseck Paira | 2022-02-23 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | mastodon.el currently follows the convention where all function names should have two dashes (not one dash) in between function and namespace names. Update all function names to follow this convention. See issue #205 and pull request #255 | ||||
| * | add helper function `mastodon-http-append-query-string' | Abhiseck Paira | 2022-01-13 | 1 | -0/+8 |
| | | | | | | | | | | | | Add helper function `mastodon-http-append-query-string' which create URLs with query strings appended to its end. (see doc string for details.) | ||||
* | | update homepage and copyright boilerplate | mousebot | 2022-02-05 | 1 | -1/+1 |
|/ | |||||
* | pleroma compat comment | mousebot | 2021-12-25 | 1 | -0/+1 |
| | |||||
* | apply pleroma patch from #208 | mousebot | 2021-12-23 | 1 | -0/+2 |
| | |||||
* | bump version to a round number | mousebot | 2021-12-17 | 1 | -1/+1 |
| | |||||
* | boilerplate maintainer contact | mousebot | 2021-12-17 | 1 | -0/+1 |
| | |||||
* | depend on emacs 27.1, flychecks, docstrings, etc. | mousebot | 2021-12-17 | 1 | -1/+1 |
| | | | | strictly, the 27.1 dependency is only for proper-list-p in -http.el. | ||||
* | bump version, change homepage link, readme | mousebot | 2021-12-17 | 1 | -2/+2 |
| | |||||
* | a first hack to make media uploads immediate and async. | mousebot | 2021-12-15 | 1 | -1/+1 |
| | | | | | | | | | this commit moves the call to -upload-attached-media into -attach-media. upload-attached-media now uploads a single item only, whichever file has just been selected at the prompt. but we still use the list of attached-media to handle preview displays. | ||||
* | Do a bit if `if` and `progn` sanitizing. | Holger Dürer | 2021-11-06 | 1 | -13/+11 |
| | | | | | | | - A `progn` with a single form is redundant - `when` doesn't need a `progn` body - `if` has an implicit `progn` for the consequences - I converted one cascade of `if`s into a `cond`. | ||||
* | Convert most uses of `(cdr (assoc <some-symbol> <a-list>))` to `(alist-get ↵ | Holger Dürer | 2021-11-06 | 1 | -5/+5 |
| | | | | | | | <some-symbol> <a-list>)` This is more readable and actually more efficient (maybe) since it uses `eq` rather than `equal` as a test. | ||||
* | Clean up uses of `url-retrieve-synchronously`. | Holger Dürer | 2021-11-06 | 1 | -28/+12 |
| | | | | | | | | | | We recently introduced a new thin abstraction `mastodon-http--url-retrieve-synchronously` but did not make use of it everywhere. This also moves its definition to the top above its first use. This also removes some dead, commented-out code. | ||||
* | Reformat all code. | Holger Dürer | 2021-11-06 | 1 | -44/+43 |
| | | | | | | | | | | | Basically, in Emacs for each file: select all text and `indent-region`. - This also removes one redundant comment, and - fixes an error with json decoding where the `json-read-from-string` was actually not within the intended `unless` clause (which explains the warning about "result of (string-equal "" json-string) will be ignored" which I never understood. | ||||
* | Fix tests. | Holger Dürer | 2021-11-01 | 1 | -4/+12 |
| | | | | | | | | | | | | These needed a bit of tender love and care to get back into passing state. - Move the auth tests to the `test` directory. No idea what it was doing in `lisp`. - Image tests are mostly broken because with later Emacsen we no longer need the `imagemagic` option on create-image. - Some method signatures have changed and mocking calls needed to follow suit. | ||||
* | Fix compilation warnings. | Holger Dürer | 2021-11-01 | 1 | -1/+1 |
| | | | | | | | | | | | | This is mostly reflowing / reworkding docstrings to keep within 80 characters limit and adding autoloads. There are two warning remaining that I don't understand: - mastodon-async.el:359:16: Warning: reference to free variable ‘url-http-end-of-headers’ - mastodon-http.el:139:8: Warning: value returned from (string-equal json-string "") is unused When adding autoloads this sorts them for better readability. |