Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theawiteb/arpstore-sdk
A Rust SDK for the Arpstore API.
https://github.com/theawiteb/arpstore-sdk
Last synced: 13 days ago
JSON representation
A Rust SDK for the Arpstore API.
- Host: GitHub
- URL: https://github.com/theawiteb/arpstore-sdk
- Owner: TheAwiteb
- License: mit
- Created: 2023-10-02T10:01:53.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-22T11:31:46.000Z (12 months ago)
- Last Synced: 2024-05-02T02:56:56.066Z (7 months ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ARPStore SDK
A SDK for ARPStore API.
### Usage
```rust
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](LICENSE) file for details