Add media workflow helpers and resource ID extraction; enhance tests for video and document status polling

This commit is contained in:
claudi 2026-04-07 10:21:47 +02:00
parent 1307d5691a
commit ee539e8189
4 changed files with 138 additions and 6 deletions

View file

@ -9,6 +9,14 @@ This workspace contains a Python-first eBay REST client foundation with:
Currently wired API domains include Notification, Inventory, Fulfillment, Account, Feed, and Media.
## Media Helpers
The Media wrapper includes workflow helpers on top of the raw endpoints:
- `extract_resource_id()` to pull a media resource ID from a `Location` header
- `wait_for_video()` to poll until a video reaches `LIVE` or a terminal failure state
- `wait_for_document()` to poll until a document reaches `ACCEPTED` or a terminal failure state
## Generate Low-Level Clients
The project uses a dedicated code generation environment because the main runtime is currently on Python 3.14 while the model generator still targets earlier Python versions.