Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iliana/eggbug-rs
Bot library for cohost.org
https://github.com/iliana/eggbug-rs
Last synced: about 1 month ago
JSON representation
Bot library for cohost.org
- Host: GitHub
- URL: https://github.com/iliana/eggbug-rs
- Owner: iliana
- License: other
- Archived: true
- Created: 2022-07-11T04:41:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-31T22:31:04.000Z (over 1 year ago)
- Last Synced: 2024-10-13T01:05:48.790Z (2 months ago)
- Language: Rust
- Homepage: https://docs.rs/eggbug
- Size: 172 KB
- Stars: 38
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-cohost - eggbug-rs - A bot library for Cohost, providing an interface to create, read, edit, and delete posts. (API Libraries)
README
# eggbug
eggbug-rs is a bot library for [cohost.org](https://cohost.org/rc/welcome), providing an
interface to create, read, edit, and delete posts.```rust
use eggbug::{Post, Session};// Log in
let session = Session::login("[email protected]", "hunter2").await?;// Describe a post
let mut post = Post {
headline: "hello from eggbug-rs!".into(),
markdown: "wow it's like a website in here".into(),
..Default::default()
};// Create the post on the eggbug page
let id = session.create_post("eggbug", &mut post).await?;// Oh wait we want to make that a link
post.markdown = "wow it's [like a website in here](https://cohost.org/hthrflwrs/post/25147-empty)".into();
session.edit_post("eggbug", id, &mut post).await?;// Good job!
```## License
eggbug-rs is released under the terms of the Anti-Capitalist Software License, version 1.4.
## Maintenance
eggbug-rs is "lightly maintained": pull requests are generally merged quickly and without
testing or API review, and new releases will generally be "breaking" (e.g. 0.2.x -> 0.3.x).