1
0
atproto/examples/app_bsky_unspecced_apply_labels.rs

15 lines
609 B
Rust
Raw Normal View History

2024-03-13 10:48:34 +00:00
#![allow(unused_imports)]
use atproto::AtprotoClient;
use atproto::model::*;
#[tokio::main]
async fn main() {
let client = AtprotoClient::from_env();
let labels = vec![
ComAtprotoLabelDefsLabel { cid : Some("your cid".to_owned()), cts :
chrono::Utc::now(), exp : Some(chrono::Utc::now()), neg : Some(true), sig :
Some("your sig".to_owned()), src : "your src".to_owned(), uri : "your uri"
.to_owned(), val : "your val".to_owned(), ver : Some(1) }
];
let response = client.app_bsky_unspecced_apply_labels(labels).await.unwrap();
println!("{:#?}", response);
}