diff --git a/bsky-sdk/README.md b/bsky-sdk/README.md index f8d1946b..6c5a9eea 100644 --- a/bsky-sdk/README.md +++ b/bsky-sdk/README.md @@ -108,6 +108,36 @@ async fn main() -> Result<(), Box> { } ``` +### Posts + +Create a BlueSky post: + +```rust,no_run +use atrium_api::types::string::Datetime; +use bsky_sdk::BskyAgent; + +#[tokio::main] +async fn main() -> Result<(), Box> { + let agent = BskyAgent::builder().build().await?; + agent.login("...", "...").await?; + + agent + .create_record(atrium_api::app::bsky::feed::post::RecordData { + created_at: Datetime::now(), + embed: None, + entities: None, + facets: None, + labels: None, + langs: None, + reply: None, + tags: None, + text: "Hello world, from Rust!".to_string(), + }) + .await?; + Ok(()) +} +``` + ### RichText Creating a RichText object from a string: