Skip to content

πŸ“¦ Rust wrapper for interacting with txts πŸ“„πŸ–‹οΈ

License

Notifications You must be signed in to change notification settings

txts-team/txts.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

txts.rs

Rust library for interacting with txts

Examples

Initializing client

let host = Url::parse("https://txts.sudokoko.xyz/").unwrap();
let client = TxtsClient::new(host)?;

Getting page info

let page = client.get("username").await?;
println!("Verified: {}", page.verified);
println!("HTML: {}", page.html_content);

Getting page content in markdown

let markdown = client.get_markdown("username").await?;

Creating page

let (page, secret) = client.create("username", "content").await?;

Editing page

let secret = Uuid::parse_str("Secret here").unwrap();
let edited_page = client.edit("username", &secret, "content").await?;

About

πŸ“¦ Rust wrapper for interacting with txts πŸ“„πŸ–‹οΈ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages