hosting

GET /v1/sites/{site_id}/translation/bundle/{locale}

One locale of a site's translated content, for the site itself to render.

Усі кінцеві точки hosting

Уся документація для розробників

Автентифікація

Надішліть ключ API як маркер носія (bearer token). Ця кінцева точка не вказує конкретного дозволу в специфікації, тому надайте своєму ключу мінімально необхідні права та перевірте відповідь, замість того щоб припускати.

Цей кінцевий пункт не потребує ідентифікатора організації. Ваш ключ уже ідентифікує організацію, якій він належить, і відповідь обмежується її межами.

Спробувати

Замініть усе в кутових дужках власними значеннями, а заповнювач ключа — ключем із вашої панелі керування.

curl -X GET https://api.zinndigital.com/v1/sites/{site_id}/translation/bundle/{locale} \
  -H "Authorization: Bearer zdk_live_…"

Увійшли в систему? Консоль API у вашій панелі керування автоматично підставляє ваш реальний ідентифікатор організації та ваш власний ключ, а також виконує запит до робочого API, щоб ви могли побачити справжню відповідь. Відкрийте цю кінцеву точку в консолі API

Деталі

Every translated string this site has in locale, keyed by document. This is the consumer end of the product: the Zinn® Translate plugin on the customer's own WordPress site calls it, caches the payload, and swaps titles, bodies, excerpts and slugs at render time. Last-good-while-stale, per string. An entry is returned whenever its text is non-empty, whatever its status: a re-translation in flight must not blank a paragraph that is already live on someone's site. A string with no translation yet is absent from the payload rather than present and empty — the plugin then renders the customer's own words, and those two cases mean different things. Readable without good standing, deliberately: taking a live site's translated pages down over an unpaid invoice is a worse outcome than the invoice, and the customer never agreed to it. It does require a live subscription — a site that never bought this gets a 403.

Параметри

НазваТипОбов'язковеЩо це таке
site_id (path)UuidТак
locale (path)LocaleCodeТакThe locale to fetch (docs/28 registry code).

Відповідь

НазваТипОбов'язковеЩо це таке
localeLocaleCodeТакBCP-47 / ISO locale code from the language registry (docs/28).
documentsSiteTranslationDocument[]Так
readyintegerТак
totalintegerТак

Помилки, які може повертати ця кінцева точка

401 · 403 · 404 · 422