Expand description
§About
Cscart-rs is an sdk for using the cscart rest api
This library is a work in process and so not all entities are supported for the v1 release
§Example
use cscart_rs::prelude::*;
use cscart_rs::Client;
use serde_json::Value;
use anyhow;
use cscart_rs::GetAllCategoryResponse;
async fn get_categories() -> anyhow::Result<GetAllCategoryResponse> {
let client = Client::new()
.host("http://my-ecommerce-site.com")
.username("my-user-email@email.com")
.api_key("user-api-key");
let categories = client
.category()
.get_all(GetAllOptions::default()).await;
categories
}
Modules§
Macros§
- impl_
create_ method - impl_
delete_ by_ id_ method - impl_
get_ all_ entity_ method - impl_
get_ all_ method - impl_
get_ by_ id_ method - impl_
update_ by_ id_ method
Structs§
- Client
- Configure an api client to perform requests
- Create
Category Response - GetAll
Category Response - GetAll
Products Response - Update
Category Response