Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        



GitHub Contributors


Stars


Build Status



Downloads


Crates.io

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).*