Crates.io | recurly |
lib.rs | recurly |
version | 48.0.0 |
source | src |
created_at | 2022-11-28 05:13:22.571948 |
updated_at | 2022-11-28 05:13:22.571948 |
description | Recurly client, generated from the OpenAPI spec. |
homepage | https://github.com/libninjacom/recurly-rs |
repository | https://github.com/libninjacom/recurly-rs |
max_upload_size | |
id | 724133 |
size | 901,243 |
Recurly client, generated from the OpenAPI spec.
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
Add this to your Cargo.toml:
[dependencies]
recurly = "0.1.0"
You can see working examples of every API call in the examples/
directory.
Contributions are welcome!
Library created with Libninja.