Provides a clean, type-safe interface with all responses standardized to
[data, error].
Installation
Usage examples
- Fetch a single product by SKU
- Fetch multiple products by SKUs
- Get category by slug
Clients
There is clients available:ShopperClient: For shopper-facing operations like fetching products, categories, and collections.CustomerClient: For customer specific operations like getting user details, whishlist etc.
Modules
ShopperClient
The SDK is organized into modules that group related functionality. Each module exposes methods for interacting with specific parts of the Enad API.products: Methods for fetching and searching products.brands: Methods for fetching brand information.categories: Methods for fetching product categories.collections: Methods for fetching product collections.facets: Methods for working with product facets.redirects: Methods for handling URL redirects.series: Methods for fetching product series.tags: Methods for fetching product tags.variants: Methods for fetching product variants.
CustomerClient
user: Methods for retrieving and managing user information.
Response Format
All SDK methods return a standardized tuple-style response, making it simple and predictable to handle results:- data is guaranteed to be defined if error is null.
- error is guaranteed to be defined if data is null.