How hendt/ebay-api works
This is a TypeScript eBay client library covering RESTful and Traditional XML APIs. The main workflow is to configure an eBayApi client, obtain authorization, select an API family and domain, and send requests through the shared transport. The graph groups the documented API domains rather than enumerating every operation. Source excerpts support the client, authentication, REST request, and transport links; domain coverage is documented in the README, but most domain implementations were not sampled, so their internal calls are not shown.
Main entry points: apiFactory.ts API factory · auth/index.ts Auth container · eBayApi.ts eBay API client · restful/index.ts REST request handling
Components 18
Client runtime
- eBay API client
src/eBayApi.ts - API factory
src/api/apiFactory.ts
Auth and transport
- API base
src/api/base.ts - Auth container
src/auth/index.ts - OAuth2
src/auth/oAuth2.ts - Auth'N'Auth
src/auth/authNAuth.ts - REST request handling
src/api/restful/index.ts - HTTP transport
src/request.ts
REST API domains
- Buy APIs
src/api/restful/buy - Commerce APIs
src/api/restful/commerce - Developer APIs
src/api/restful/developer - Post Order APIs
src/api/restful/postOrder - Sell APIs
src/api/restful/sell - REST API types
src/types/restful/specs
Traditional APIs
- XML requests
src/api/traditional/XMLRequest.ts - Traditional API family
src/api/traditional - Traditional types
src/types/traditional
Other components
- Application developer
Connections 17
- Application developer → eBay API client: configures
- eBay API client → API factory: creates APIs
src/eBayApi.ts - eBay API client → Auth container: exposes auth
src/eBayApi.ts - API factory → Buy APIs: creates domain APIs
src/api/apiFactory.ts - API factory → Commerce APIs: creates domain APIs
src/api/apiFactory.ts - API factory → Developer APIs: creates domain APIs
src/api/apiFactory.ts - API factory → Post Order APIs: creates domain APIs
src/api/apiFactory.ts - API factory → Sell APIs: creates domain APIs
src/api/apiFactory.ts - Auth container → OAuth2: provides
src/auth/index.ts - Auth container → Auth'N'Auth: provides
src/auth/index.ts - REST request handling → Auth container: gets authorization
src/api/restful/index.ts - REST request handling → HTTP transport: sends requests
src/api/restful/index.ts - Auth'N'Auth → XML requests: sends XML calls
src/auth/authNAuth.ts - Traditional API family → XML requests: uses XML requests
src/api/traditional/XMLRequest.ts - Buy APIs → REST API types: uses API schemas
- Sell APIs → REST API types: uses API schemas
src/api/restful/sell/marketing/index.ts - Traditional API family → Traditional types: uses response types