Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix license header on new files. | Harald Eilertsen | 2023-03-28 | 1 | -0/+16 |
| | |||||
* | Add ZotAPI trait and derive macro. | Harald Eilertsen | 2023-03-27 | 7 | -25/+18 |
| | | | | | | | | | The idea is to try to generate more of the boilerplate code, but for now we only do the `z()` method definition. There are also some we're not quite able to replace yet (like XChanRequest) since it also has life times. It's a start anyways :) | ||||
* | Implement "verify" API.HEADmaster | Harald Eilertsen | 2023-03-26 | 3 | -0/+184 |
| | | | | | | | The verify API call returns a full channel object, including the corresponding xchan. I've added the xchan as a field in the Channel object, instead of having all the fields in one object like it is returned from the API. | ||||
* | Make abook output prettier. | Harald Eilertsen | 2023-03-26 | 1 | -1/+3 |
| | | | | | | Only print the most relevant information from the returned data. Output it as CSV (but we don't do any sort of escaping yet). This will probably not stay this way, but works as a demonstration for now. | ||||
* | Include XChan in the Abook struct. | Harald Eilertsen | 2023-03-26 | 1 | -3/+16 |
| | | | | | | I feel this is a better representation than what is coming directly from the API where it's all returned as one json object with fieldnames prefixed with abook or xchan respectively. | ||||
* | Add generix API error which is a string. | Harald Eilertsen | 2023-03-26 | 1 | -0/+7 |
| | |||||
* | Fetch abook and xchan directly from api. | Harald Eilertsen | 2023-03-26 | 6 | -134/+162 |
| | | | | We don't really need the intermediate layer in the binary module. | ||||
* | Update reqwest and make async. | Harald Eilertsen | 2021-07-05 | 15 | -59/+77 |
| | | | | | | | | 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... | ||||
* | Fix tests an update for newer rust. | Harald Eilertsen | 2021-07-04 | 1 | -1/+1 |
| | |||||
* | bin/zot: Clean up channel stream output somewhat. | Your Name | 2020-05-03 | 1 | -9/+18 |
| | | | | Not really easy to find a goot pure text representation of this, though. | ||||
* | Promote example app to proper command line client. | Your Name | 2020-05-03 | 9 | -0/+597 |
| | |||||
* | zotcli: Don't dump raw json response after post item. | Your Name | 2020-05-02 | 2 | -4/+38 |
| | |||||
* | xchan: update internal api and parse results into struct. | Your Name | 2020-05-02 | 2 | -11/+51 |
| | |||||
* | xchan: rename request object type to XChanRequest. | Your Name | 2020-05-02 | 1 | -12/+12 |
| | | | | We want to have the XChan type for actial XChan data. | ||||
* | Update abook with struct and request object. | Harald Eilertsen | 2020-02-14 | 2 | -6/+103 |
| | |||||
* | Refactor how ABConfigs are fetched. | Harald Eilertsen | 2020-02-13 | 2 | -17/+22 |
| | | | | | | | Introduce a `z()` menber function that creates the request object that we use for further configuring the requset. This eliminates the need to two fetch functions, and is meant to provide a consistent way of doing these requests. | ||||
* | Let api access client request object directly. | Harald Eilertsen | 2020-02-13 | 2 | -5/+13 |
| | | | | | This simplifies things a bit, as we don't need to buffer query params and such outside of the request itself. | ||||
* | Add fetching ABConfig for only a given contact. | Harald Eilertsen | 2020-02-13 | 1 | -0/+36 |
| | |||||
* | abconfig: reorg + parse result into struct. | Harald Eilertsen | 2020-01-04 | 3 | -10/+21 |
| | |||||
* | Cargo fmt | Harald Eilertsen | 2020-01-03 | 8 | -32/+9 |
| | |||||
* | Move client constructor fn to submodule. | Harald Eilertsen | 2020-01-03 | 3 | -14/+10 |
| | |||||
* | Make channel and network stream behave like the rest. | Harald Eilertsen | 2020-01-03 | 4 | -8/+70 |
| | |||||
* | Move Client out of the api objects. | Harald Eilertsen | 2020-01-03 | 7 | -98/+58 |
| | | | | Also make constructor functions in the zotapi namespace. | ||||
* | Use Url crate and move paths to submodules. | Harald Eilertsen | 2020-01-03 | 6 | -33/+25 |
| | |||||
* | Cargo fmt | Harald Eilertsen | 2020-01-02 | 7 | -47/+55 |
| | |||||
* | No need for extern crate in Rust 2018. | Harald Eilertsen | 2020-01-02 | 1 | -3/+0 |
| | |||||
* | Allow limiting a new item to one or more privacy groups. | Harald Eilertsen | 2020-01-01 | 1 | -12/+52 |
| | |||||
* | Replace serde_urlencoded with serde_qs. | Harald Eilertsen | 2020-01-01 | 5 | -35/+23 |
| | | | | Simplifies serialization of various types quite a bit. | ||||
* | Update deps. | Harald Eilertsen | 2020-01-01 | 1 | -1/+1 |
| | |||||
* | Abstract away type of stored data in an Item. | Harald Eilertsen | 2019-07-29 | 2 | -4/+38 |
| | | | | | Currently this seems rather pointless, but will make more sense when we need to store arrays in the Item data set. | ||||
* | Add a bit of doc to the ItemBuilder struct. | Harald Eilertsen | 2019-06-12 | 1 | -0/+17 |
| | |||||
* | Make Error type public. | Harald Eilertsen | 2019-06-12 | 1 | -0/+1 |
| | |||||
* | Fix uploading of attachments to posts. | Harald Eilertsen | 2019-06-12 | 1 | -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 Eilertsen | 2019-06-10 | 2 | -2/+53 |
| | |||||
* | Fetch privacy groups. | Harald Eilertsen | 2019-06-09 | 3 | -0/+41 |
| | |||||
* | Use rust edition 2018. | Harald Eilertsen | 2019-06-09 | 5 | -13/+23 |
| | |||||
* | Upload one file should now work. | Harald Eilertsen | 2018-12-16 | 1 | -5/+12 |
| | |||||
* | Begin multipart/form-data upload support. | Harald Eilertsen | 2018-11-19 | 2 | -1/+31 |
| | |||||
* | Export zotapi::Client | Harald Eilertsen | 2018-09-24 | 1 | -1/+1 |
| | |||||
* | Begin implement undocumented abconfig API. | Harald Eilertsen | 2018-09-23 | 3 | -0/+41 |
| | |||||
* | Begin implementaton of undocumented abook api to fetch connections. | Harald Eilertsen | 2018-09-23 | 3 | -0/+41 |
| | |||||
* | Upgrade dep reqwest to 0.9.1. | Harald Eilertsen | 2018-09-22 | 1 | -9/+8 |
| | |||||
* | Use enum instead of BTreeMap to select xchan. | Harald Eilertsen | 2018-08-23 | 1 | -7/+26 |
| | | | | | | | | | Since it only makes sence to fetch an xchan by one of the methods (address, hash or guid) we don't need a data type that can hold more than one value. Had to implement my own serializer for it, since serde_urlencoded don't know how to serialize enums by default. | ||||
* | Add fetching xchans by guid and has too. | Harald Eilertsen | 2018-08-23 | 1 | -0/+10 |
| | |||||
* | Add support for fetching xchan data by address. | Harald Eilertsen | 2018-08-21 | 3 | -9/+73 |
| | | | | | | | 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. | ||||
* | Allow setting title for new items. | Harald Eilertsen | 2018-08-20 | 1 | -4/+11 |
| | |||||
* | Refactoring: Split into submodules. | Harald Eilertsen | 2018-08-20 | 4 | -123/+187 |
| | |||||
* | Refactoring: Make Client::post_data helper. | Harald Eilertsen | 2018-08-20 | 1 | -17/+25 |
| | | | | | This means we don't need to access internal data members of the Client in builder structs an the like. | ||||
* | Remove create_item API. | Harald Eilertsen | 2018-08-20 | 1 | -20/+0 |
| | |||||
* | Use builder pattern to construct items. | Harald Eilertsen | 2018-08-20 | 1 | -0/+42 |
| |