@adobe/aio-commerce-lib-api
v0.4.1
Published
A set of utilities to build HTTP/API clients for I/O Events and Adobe Commerce
Maintainers
Keywords
Readme
@adobe/aio-commerce-lib-api
A set of utilities to build HTTP/API clients for Adobe I/O Events and Adobe Commerce APIs.
This library provides a unified interface for building HTTP clients that can communicate with Adobe Commerce (both SaaS and PaaS) and Adobe I/O Events APIs, with built-in authentication support and a flexible API function binding system.
Installation
pnpm add @adobe/aio-commerce-lib-apiUsage
See the Usage Guide for more information.
Architecture
The library is built on top of Ky, a modern HTTP client based on Fetch API, providing:
- Automatic retries with exponential backoff
- Request/response hooks
- Timeout support
- JSON parsing
- Error handling
The authentication layer integrates seamlessly with @adobe/aio-commerce-lib-auth, automatically handling:
- OAuth 1.0a signatures for PaaS instances
- Bearer token authentication for SaaS instances
- IMS token management and refresh
Contributing
This package is part of the Adobe Commerce SDK monorepo. See the Contributing Guide and Development Guide for development setup and guidelines.
