aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add test for uploading two files.Harald Eilertsen2018-12-161-0/+37
|
* Upload one file should now work.Harald Eilertsen2018-12-163-7/+27
|
* Begin multipart/form-data upload support.Harald Eilertsen2018-11-193-1/+51
|
* Update to mockito 0.14.Harald Eilertsen2018-11-191-1/+1
|
* Merge branch 'rewrite-examples'Harald Eilertsen2018-11-0616-299/+508
|\
| * Clear out old example code.rewrite-examplesHarald Eilertsen2018-11-066-298/+0
| |
| * Move abconfig example to new example app.Harald Eilertsen2018-11-063-0/+36
| |
| * Move the post new item example code to new example app.Harald Eilertsen2018-11-063-0/+40
| |
| * Import macros explicitly in zot cli example.Harald Eilertsen2018-10-281-2/+9
| | | | | | | | This requires rust 1.30.0 or later.
| * Move zot cli example modules into submodule.Harald Eilertsen2018-10-286-11/+12
| | | | | | | | Also rename example from zot to zotcli to avoid name clash.
| * Add fetching xchans to main sample.Harald Eilertsen2018-10-092-0/+74
| |
| * Add abook api to main example.Harald Eilertsen2018-10-082-0/+63
| |
| * Add fetching network_stream to main example.Harald Eilertsen2018-10-082-1/+123
| | | | | | | | | | This duplicates a lot of the code from the channel_stream example, will try to refactor later.
| * Differ between different type of tags in channel_stream example.Harald Eilertsen2018-10-081-3/+11
| |
| * Expand channel_stream to output items as on the web.Harald Eilertsen2018-10-071-3/+52
| |
| * Add new "master" example, to contain all examples as subcommands.Harald Eilertsen2018-09-243-0/+107
| | | | | | | | Only implements fetching the channel-stream for now.
| * Export zotapi::ClientHarald Eilertsen2018-09-241-1/+1
|/
* Drop unused variables from examples.Harald Eilertsen2018-09-232-4/+0
|
* Begin implement undocumented abconfig API.Harald Eilertsen2018-09-235-0/+97
|
* Add example for fetching abook data.Harald Eilertsen2018-09-231-0/+55
|
* Begin implementaton of undocumented abook api to fetch connections.Harald Eilertsen2018-09-234-0/+55
|
* Upgrade dep reqwest to 0.9.1.Harald Eilertsen2018-09-222-10/+9
|
* 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-232-0/+38
|
* Add example for fetching xchan data by address.Harald Eilertsen2018-08-221-0/+50
|
* Add support for fetching xchan data by address.Harald Eilertsen2018-08-215-9/+88
| | | | | | | 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-202-4/+32
|
* Refactoring: Split into submodules.Harald Eilertsen2018-08-204-123/+187
|
* Refactoring: Make Client::post_data helper.Harald Eilertsen2018-08-202-17/+26
| | | | | 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-202-21/+1
|
* Use builder pattern to construct items.Harald Eilertsen2018-08-202-1/+43
|
* Add simple example to post a message.Harald Eilertsen2018-08-191-0/+47
|
* First attempt at creating posts.Harald Eilertsen2018-08-192-1/+38
|
* Add licence blurb to sources.Harald Eilertsen2018-08-195-0/+80
|
* Add method for fetching network stream.Harald Eilertsen2018-08-193-0/+58
|
* Generalize channel_stream into internal helper function.Harald Eilertsen2018-08-191-5/+9
|
* Update example to handle error from channel stream.Harald Eilertsen2018-08-191-9/+21
|
* Return error from channel stream API if unauthorized.Harald Eilertsen2018-08-192-7/+48
|
* Add example of using the channel stream api.Harald Eilertsen2018-08-072-0/+28
|
* Refactor generating target urlHarald Eilertsen2018-08-071-3/+4
|
* Pass authorization info to endpoint.Harald Eilertsen2018-08-072-7/+21
| | | | | | 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-073-0/+54
|
* Rename lib, drop dash.Harald Eilertsen2018-08-031-1/+1
|
* Add a README while we're at it.Harald Eilertsen2018-08-031-0/+31
|
* Zet ze ztage...Harald Eilertsen2018-08-024-0/+691