SDK (TypeScript / Python)
Official thin clients for /v1 sync calls, Jobs, and Catalog. HTTP 202 auto-polls to a terminal status by default.
Install
npm install @wellbyte/sdk
pip install wellbyte
TypeScript
import { WellbyteClient } from "@wellbyte/sdk";
const client = new WellbyteClient({
apiKey: process.env.WELLBYTE_API_KEY!,
baseUrl: "https://api.wellbyte.dev",
});
const res = await client.call("/v1/xiaohongshu/note/detail", {
note_id: "demo_note_ok",
});
Python
from wellbyte import WellbyteClient
with WellbyteClient(api_key="dg_live_xxx", base_url="https://api.wellbyte.dev") as c:
print(c.call("/v1/xiaohongshu/note/detail", {"note_id": "demo_note_ok"}))
202 behavior
Large sync requests may return 202 + job_id. The SDK polls GET /v1/jobs/{id} until a terminal status. Disable with autoPoll: false / auto_poll=False.