arpstore-sdk

Crates.ioarpstore-sdk
lib.rsarpstore-sdk
version0.1.4
sourcesrc
created_at2023-10-02 10:02:17.257114
updated_at2023-11-22 11:31:23.573445
descriptionA Rust SDK for the Arpstore API.
homepage
repositoryhttps://github.com/theawiteb/arpstore-sdk
max_upload_size
id989782
size7,752
Mohammed Alotaibi (TheAwiteb)

documentation

https://docs.rs/arpstore-sdk/latest/arpstore_sdk/

README

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

Commit count: 9

cargo fmt