4 releases
0.1.4 | Nov 22, 2023 |
---|---|
0.1.3 | Nov 3, 2023 |
0.1.2 |
|
0.1.1 | Oct 2, 2023 |
0.1.0 | Oct 2, 2023 |
7KB
114 lines
ARPStore SDK
A SDK for ARPStore API.
Usage
use arpstore_sdk::Client;
const PRODUCT_CODE: &str = "the_product_code";
#[tokio::main]
async fn main() {
let arp_client = Client::new("https://api.yourdomain.com", "your_subscription_key");
let result = arp_client.is_valid_subscription(PRODUCT_CODE).await;
match result {
Ok(_) => println!("Subscription is valid"),
Err(e) => println!("{e}"), // The error is a string from the API, or a reqwest error
}
}
License
This project is licensed under the MIT License - see the LICENSE file for details
Dependencies
~6–38MB
~606K SLoC