| name | framework |
|---|---|
| description | Use for _APIClient, requests usage, retries, timeout, and OAuth interceptor in contentstack-management-python. |
- Editing
contentstack_management/_api_client.pyor OAuth interceptor/handler wiring. - Changing retry policy, timeouts, or how
requestsis invoked.
_APIClientusesrequestsin_call_request, honors timeout and max_retries, and delegates tooauth_interceptorwhen configured.
- Retry or transport behavior — keep logic centralized in
_APIClientunless a resource truly needs a documented exception. - Auth headers — prefer extending
Client/user_agentspatterns rather than scattering header merges.
- Unit — mock
requestsor_APIClientat the boundary used by existing tests. - API — full stack via credentials from
tests/cred.py.