aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* bin/zot: Clean up channel stream output somewhat.Your Name2020-05-031-9/+18
| | | | Not really easy to find a goot pure text representation of this, though.
* Promote example app to proper command line client.Your Name2020-05-039-0/+597
|
* zotcli: Don't dump raw json response after post item.Your Name2020-05-022-4/+38
|
* xchan: update internal api and parse results into struct.Your Name2020-05-022-11/+51
|
* xchan: rename request object type to XChanRequest.Your Name2020-05-021-12/+12
| | | | We want to have the XChan type for actial XChan data.
* Update abook with struct and request object.Harald Eilertsen2020-02-142-6/+103
|
* Refactor how ABConfigs are fetched.Harald Eilertsen2020-02-132-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 Eilertsen2020-02-132-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 Eilertsen2020-02-131-0/+36
|
* abconfig: reorg + parse result into struct.Harald Eilertsen2020-01-043-10/+21
|
* Cargo fmtHarald Eilertsen2020-01-038-32/+9
|
* Move client constructor fn to submodule.Harald Eilertsen2020-01-033-14/+10
|
* Make channel and network stream behave like the rest.Harald Eilertsen2020-01-034-8/+70
|
* Move Client out of the api objects.Harald Eilertsen2020-01-037-98/+58
| | | | Also make constructor functions in the zotapi namespace.
* Use Url crate and move paths to submodules.Harald Eilertsen2020-01-036-33/+25
|
* Cargo fmtHarald Eilertsen2020-01-027-47/+55
|
* No need for extern crate in Rust 2018.Harald Eilertsen2020-01-021-3/+0
|
* Allow limiting a new item to one or more privacy groups.Harald Eilertsen2020-01-011-12/+52
|
* Replace serde_urlencoded with serde_qs.Harald Eilertsen2020-01-015-35/+23
| | | | 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-292-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 Eilertsen2019-06-121-0/+17
|
* Make Error type public.Harald Eilertsen2019-06-121-0/+1
|
* 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-102-2/+53
|
* Fetch privacy groups.Harald Eilertsen2019-06-093-0/+41
|
* Use rust edition 2018.Harald Eilertsen2019-06-095-13/+23
|
* Upload one file should now work.Harald Eilertsen2018-12-161-5/+12
|
* Begin multipart/form-data upload support.Harald Eilertsen2018-11-192-1/+31
|
* Export zotapi::ClientHarald Eilertsen2018-09-241-1/+1
|
* Begin implement undocumented abconfig API.Harald Eilertsen2018-09-233-0/+41
|
* Begin implementaton of undocumented abook api to fetch connections.Harald Eilertsen2018-09-233-0/+41
|
* Upgrade dep reqwest to 0.9.1.Harald Eilertsen2018-09-221-9/+8
|
* Use enum instead of BTreeMap to select xchan.Harald Eilertsen2018-08-231-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 Eilertsen2018-08-231-0/+10
|
* Add support for fetching xchan data by address.Harald Eilertsen2018-08-213-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 Eilertsen2018-08-201-4/+11
|
* Refactoring: Split into submodules.Harald Eilertsen2018-08-204-123/+187
|
* Refactoring: Make Client::post_data helper.Harald Eilertsen2018-08-201-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 Eilertsen2018-08-201-20/+0
|
* Use builder pattern to construct items.Harald Eilertsen2018-08-201-0/+42
|
* First attempt at creating posts.Harald Eilertsen2018-08-191-1/+22
|
* Add licence blurb to sources.Harald Eilertsen2018-08-191-0/+16
|
* Add method for fetching network stream.Harald Eilertsen2018-08-191-0/+5
|
* Generalize channel_stream into internal helper function.Harald Eilertsen2018-08-191-5/+9
|
* Return error from channel stream API if unauthorized.Harald Eilertsen2018-08-191-6/+32
|
* Refactor generating target urlHarald Eilertsen2018-08-071-3/+4
|
* Pass authorization info to endpoint.Harald Eilertsen2018-08-071-5/+18
| | | | | | 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 Eilertsen2018-08-071-0/+32
|
* Zet ze ztage...Harald Eilertsen2018-08-021-0/+7