Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/libninjacom/recurly-rs
Recurly client, generated from the OpenAPI spec
https://github.com/libninjacom/recurly-rs
openapi recurly rust
Last synced: 23 days ago
JSON representation
Recurly client, generated from the OpenAPI spec
- Host: GitHub
- URL: https://github.com/libninjacom/recurly-rs
- Owner: libninjacom
- License: mit
- Created: 2022-11-10T15:17:57.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-28T05:17:01.000Z (about 2 years ago)
- Last Synced: 2024-03-15T04:22:19.478Z (11 months ago)
- Topics: openapi, recurly, rust
- Language: Rust
- Homepage: https://docs.rs/recurly/
- Size: 811 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Recurly client, generated from the OpenAPI spec.
# Usage
```rust
use recurly::RecurlyClient;
use recurly::model::*;
#[tokio::main]
async fn main() {
let client = RecurlyClient::from_env();
let response = client
.list_sites()
.ids(&["your ids"])
.limit(1)
.order("your order")
.sort("your sort")
.state("your state")
.send()
.await
.unwrap();
println!("{:#?}", response);
}```
This example loads configuration from environment variables, specifically:
* `RECURLY_BASE_URL`
* `RECURLY_API_KEY`
# Installation
Add this to your Cargo.toml:
```toml
[dependencies]
recurly = "48.0.0"
```# Documentation
* [Client Library Documentation](https://docs.rs/recurly)
You can see working examples of every API call in the `examples/` directory.
# Contributing
Contributions are welcome!
*Library created with [Libninja](https://www.libninja.com).*