Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muchobien/porkbun-rs
An Porkbun API client written in rust.
https://github.com/muchobien/porkbun-rs
api api-client porkbun rust
Last synced: about 2 months ago
JSON representation
An Porkbun API client written in rust.
- Host: GitHub
- URL: https://github.com/muchobien/porkbun-rs
- Owner: muchobien
- License: mit
- Created: 2021-06-03T15:08:36.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-04T15:06:17.000Z (over 3 years ago)
- Last Synced: 2024-07-03T07:13:06.512Z (3 months ago)
- Topics: api, api-client, porkbun, rust
- Language: Rust
- Homepage: https://docs.rs/crate/porkbun-rs
- Size: 41 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rust library for accessing the Porkbun API
A Porkbun API client written in 🦀.
[Porkbun](https://porkbun.com/) is a 🦀 client library for accessing the Porkbun API.
## Examples
### Synchronous
```rs
use porkbun_rs::{api, api::Query, auth::Auth, endpoints, Porkbun};fn main() -> eyre::Result<()> {
let auth = Auth::new("apikey".into(), "apisecret".into());
let client = Porkbun::new(auth)?;
let endpoint = endpoints::Ping::builder().build()?;api::ignore(endpoint).query(&client)?;
Ok(())
}
```### Asynchronous
```rs
use porkbun_rs::{api, api::AsyncQuery, auth::Auth, endpoints, AsyncPorkbun};#[tokio::main]
async fn main() -> eyre::Result<()> {
let auth = Auth::new("apikey".into(), "apisecret".into());
let client = AsyncPorkbun::new(auth)?;
let endpoint = endpoints::Ping::builder().build()?;api::ignore(endpoint).query_async(&client).await?;
Ok(())
}
```## API Documentation
- [API Docs](https://porkbun.com/api/json/v3/documentation)
## LICENSE
- [MIT](./LICENSE)