aboutsummaryrefslogtreecommitdiffstats
path: root/examples/zot/item.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/zot/item.rs')
-rw-r--r--examples/zot/item.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/zot/item.rs b/examples/zot/item.rs
index dec6c8d..2e07561 100644
--- a/examples/zot/item.rs
+++ b/examples/zot/item.rs
@@ -19,7 +19,7 @@ use clap::ArgMatches;
use zotapi;
pub fn post(client: &zotapi::Client, args: &ArgMatches) {
- let mut msg = client.item();
+ let mut msg = zotapi::item();
msg.body(args.value_of("BODY").unwrap());
if let Some(title) = dbg!(args.value_of("TITLE")) {
@@ -36,7 +36,7 @@ pub fn post(client: &zotapi::Client, args: &ArgMatches) {
}
}
- match msg.create() {
+ match msg.create(&client) {
Ok(payload) => {
println!("Raw payload: {}", payload);
}