aboutsummaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Move Client out of the api objects.Harald Eilertsen2020-01-035-12/+14
| | | | Also make constructor functions in the zotapi namespace.
* Cargo fmtHarald Eilertsen2020-01-028-91/+64
|
* No need for extern crate in Rust 2018.Harald Eilertsen2020-01-021-3/+0
|
* zotcli: Limit post to one or more groups.Harald Eilertsen2020-01-012-0/+7
|
* zotcli: Handle attaching media to posts.Harald Eilertsen2019-06-122-1/+7
|
* zotcli: Fetch group members by group id or group name.Harald Eilertsen2019-06-102-4/+57
|
* zotcli: Make group formatting work and print flags.Harald Eilertsen2019-06-101-5/+20
| | | | | Formatting requires the format arguments to be proper strings or integers. Formatting a serde_json::Value directly did not work.
* Fetch privacy groups.Harald Eilertsen2019-06-093-0/+51
|
* zotcli can now post messages with titles.Harald Eilertsen2019-06-092-4/+11
|
* Use clap_app macro to define args at compile time.Harald Eilertsen2019-06-091-57/+37
| | | | | | For some reason the clap_app macro does not accept subcommands with hyphens, so the subcommands `channel-strean` and `network-stream` has been changed to `channel` and `network` respectively.
* 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-242-0/+106
| | | | Only implements fetching the channel-stream for now.
* Drop unused variables from examples.Harald Eilertsen2018-09-232-4/+0
|
* Begin implement undocumented abconfig API.Harald Eilertsen2018-09-231-0/+42
|
* Add example for fetching abook data.Harald Eilertsen2018-09-231-0/+55
|
* Add example for fetching xchan data by address.Harald Eilertsen2018-08-221-0/+50
|
* Remove create_item API.Harald Eilertsen2018-08-201-1/+1
|
* Add simple example to post a message.Harald Eilertsen2018-08-191-0/+47
|
* Add licence blurb to sources.Harald Eilertsen2018-08-192-0/+32
|
* Add method for fetching network stream.Harald Eilertsen2018-08-191-0/+38
|
* Update example to handle error from channel stream.Harald Eilertsen2018-08-191-9/+21
|
* Add example of using the channel stream api.Harald Eilertsen2018-08-071-0/+26