Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make channel_stream return error on auth failure | Harald Eilertsen | 2024-01-12 | 1 | -327/+327 |
| | | | | Also reenables the relevant tests. | ||||
* | Fetch abook and xchan directly from api. | Harald Eilertsen | 2023-03-26 | 1 | -1/+1 |
| | | | | We don't really need the intermediate layer in the binary module. | ||||
* | Update reqwest and make async. | Harald Eilertsen | 2021-07-05 | 1 | -50/+56 |
| | | | | | | | | 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 | -3/+3 |
| | |||||
* | xchan: update internal api and parse results into struct. | Your Name | 2020-05-02 | 1 | -6/+50 |
| | |||||
* | Update abook with struct and request object. | Harald Eilertsen | 2020-02-14 | 1 | -1/+1 |
| | |||||
* | tests: Make default mock return empty array. | Harald Eilertsen | 2020-02-14 | 1 | -1/+1 |
| | | | | Most API's return an arrya, so this should be ok with most of them. | ||||
* | tests: No need to check response returned by mock. | Harald Eilertsen | 2020-02-14 | 1 | -4/+2 |
| | |||||
* | Refactor how ABConfigs are fetched. | Harald Eilertsen | 2020-02-13 | 1 | -2/+2 |
| | | | | | | | 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. | ||||
* | Add fetching ABConfig for only a given contact. | Harald Eilertsen | 2020-02-13 | 1 | -0/+12 |
| | |||||
* | abconfig: reorg + parse result into struct. | Harald Eilertsen | 2020-01-04 | 1 | -2/+31 |
| | |||||
* | Cargo fmt | Harald Eilertsen | 2020-01-03 | 1 | -3/+1 |
| | |||||
* | Make channel and network stream behave like the rest. | Harald Eilertsen | 2020-01-03 | 1 | -3/+3 |
| | |||||
* | Move Client out of the api objects. | Harald Eilertsen | 2020-01-03 | 1 | -27/+33 |
| | | | | Also make constructor functions in the zotapi namespace. | ||||
* | Cargo fmt | Harald Eilertsen | 2020-01-02 | 1 | -52/+82 |
| | |||||
* | 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 | -0/+28 |
| | |||||
* | tests: Verify authorization properly. | Harald Eilertsen | 2020-01-01 | 1 | -15/+14 |
| | |||||
* | Update to Mockito 0.19 for smoother tests. | Harald Eilertsen | 2019-07-29 | 1 | -12/+11 |
| | | | | | Provides matching against query params, so we don't need the ugly regexes anymore. | ||||
* | Reduce duplication in tests. | Harald Eilertsen | 2019-06-12 | 1 | -84/+35 |
| | | | | | Adds a default_mock method for most cases, and a client method that sets up the zotapi client with the proper test url and credentials. | ||||
* | Fix uploading of attachments to posts. | Harald Eilertsen | 2019-06-12 | 1 | -3/+3 |
| | | | | | | | 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 | 1 | -0/+30 |
| | |||||
* | Fetch privacy groups. | Harald Eilertsen | 2019-06-09 | 1 | -0/+14 |
| | |||||
* | Add test for uploading two files. | Harald Eilertsen | 2018-12-16 | 1 | -0/+37 |
| | |||||
* | Upload one file should now work. | Harald Eilertsen | 2018-12-16 | 1 | -2/+14 |
| | |||||
* | Begin multipart/form-data upload support. | Harald Eilertsen | 2018-11-19 | 1 | -0/+20 |
| | |||||
* | Begin implement undocumented abconfig API. | Harald Eilertsen | 2018-09-23 | 1 | -0/+14 |
| | |||||
* | Begin implementaton of undocumented abook api to fetch connections. | Harald Eilertsen | 2018-09-23 | 1 | -0/+14 |
| | |||||
* | Add fetching xchans by guid and has too. | Harald Eilertsen | 2018-08-23 | 1 | -0/+28 |
| | |||||
* | Add support for fetching xchan data by address. | Harald Eilertsen | 2018-08-21 | 1 | -0/+14 |
| | | | | | | | 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 | -0/+21 |
| | |||||
* | Use builder pattern to construct items. | Harald Eilertsen | 2018-08-20 | 1 | -1/+1 |
| | |||||
* | First attempt at creating posts. | Harald Eilertsen | 2018-08-19 | 1 | -0/+16 |
| | |||||
* | Add licence blurb to sources. | Harald Eilertsen | 2018-08-19 | 1 | -0/+16 |
| | |||||
* | Add method for fetching network stream. | Harald Eilertsen | 2018-08-19 | 1 | -0/+15 |
| | |||||
* | Return error from channel stream API if unauthorized. | Harald Eilertsen | 2018-08-19 | 1 | -1/+16 |
| | |||||
* | Pass authorization info to endpoint. | Harald Eilertsen | 2018-08-07 | 1 | -2/+3 |
| | | | | | | It seems like Hubzilla will accept basic authorization info in the first request. This does not follow the described signal flow for basic authorization, but for now we'll use whatever works. | ||||
* | First iteration of getting channel stream from server. | Harald Eilertsen | 2018-08-07 | 1 | -0/+18 |