aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.rs
Commit message (Collapse)AuthorAgeFilesLines
* Update reqwest and make async.Harald Eilertsen2021-07-051-19/+21
| | | | | | | | This means adding the full tokio as a dependency. While there isn't much gain to going async in the current cli demo app, a full fledged app may have more to gain by it. First foray into async rust, so I might not do it right...
* zotcli: Don't dump raw json response after post item.Your Name2020-05-021-0/+8
|
* Let api access client request object directly.Harald Eilertsen2020-02-131-0/+8
| | | | | This simplifies things a bit, as we don't need to buffer query params and such outside of the request itself.
* Cargo fmtHarald Eilertsen2020-01-031-2/+1
|
* Move client constructor fn to submodule.Harald Eilertsen2020-01-031-8/+8
|
* Make channel and network stream behave like the rest.Harald Eilertsen2020-01-031-8/+0
|
* Move Client out of the api objects.Harald Eilertsen2020-01-031-32/+1
| | | | Also make constructor functions in the zotapi namespace.
* Use Url crate and move paths to submodules.Harald Eilertsen2020-01-031-18/+12
|
* Cargo fmtHarald Eilertsen2020-01-021-24/+37
|
* Replace serde_urlencoded with serde_qs.Harald Eilertsen2020-01-011-7/+7
| | | | Simplifies serialization of various types quite a bit.
* Update deps.Harald Eilertsen2020-01-011-1/+1
|
* Abstract away type of stored data in an Item.Harald Eilertsen2019-07-291-1/+2
| | | | | Currently this seems rather pointless, but will make more sense when we need to store arrays in the Item data set.
* Fix uploading of attachments to posts.Harald Eilertsen2019-06-121-28/+26
| | | | | | | The field needs to be named `media`, and we also need to handle the result of the operation. This refactors the result handling into a separate private function.
* Implement fetching privacy group members.Harald Eilertsen2019-06-101-2/+7
|
* Fetch privacy groups.Harald Eilertsen2019-06-091-0/+6
|
* Use rust edition 2018.Harald Eilertsen2019-06-091-5/+7
|
* Upload one file should now work.Harald Eilertsen2018-12-161-5/+12
|
* Begin multipart/form-data upload support.Harald Eilertsen2018-11-191-0/+18
|
* Begin implement undocumented abconfig API.Harald Eilertsen2018-09-231-0/+6
|
* Begin implementaton of undocumented abook api to fetch connections.Harald Eilertsen2018-09-231-0/+6
|
* Upgrade dep reqwest to 0.9.1.Harald Eilertsen2018-09-221-9/+8
|
* Add support for fetching xchan data by address.Harald Eilertsen2018-08-211-9/+29
| | | | | | | Not entirely happy with it, have updated the signature of Client::fetch_stream and Client::url to take args, which are left out if they're not serializable (or empty, I hope.) Should probably use an Option instead, or maybe even two entry points for the api.
* Refactoring: Split into submodules.Harald Eilertsen2018-08-201-0/+104