Crates.io | arpstore-sdk |
lib.rs | arpstore-sdk |
version | 0.1.4 |
source | src |
created_at | 2023-10-02 10:02:17.257114 |
updated_at | 2023-11-22 11:31:23.573445 |
description | A Rust SDK for the Arpstore API. |
homepage | |
repository | https://github.com/theawiteb/arpstore-sdk |
max_upload_size | |
id | 989782 |
size | 7,752 |
A SDK for ARPStore API.
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
}
}
This project is licensed under the MIT License - see the LICENSE file for details