aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/hubzilla-post.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/hubzilla-post.rs b/examples/hubzilla-post.rs
index 8b9773a..5eb7826 100644
--- a/examples/hubzilla-post.rs
+++ b/examples/hubzilla-post.rs
@@ -36,7 +36,7 @@ fn main() {
let client = zotapi::client(&site, &user, &password);
- match client.create_item(&body) {
+ match client.item().body(&body).create() {
Ok(payload) => {
println!("Raw payload: {}", payload);
},