#generated #open-api #spec #model #order #tokio #sorting

recurly

Recurly client, generated from the OpenAPI spec

1 stable release

48.0.0 Nov 28, 2022

#162 in Finance

MIT license

740KB
15K SLoC

GitHub Contributors Stars Build Status Downloads Crates.io

Recurly client, generated from the OpenAPI spec.

Usage

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:

[dependencies]
recurly = "0.1.0"

Documentation

You can see working examples of every API call in the examples/ directory.

Contributing

Contributions are welcome!

Library created with Libninja.

Dependencies

~15–28MB
~555K SLoC