hosting

POST /v1/media-offload/claim

The WordPress plugin, redeeming a pairing code for a scoped token.

همه نقاط پایانی hosting

احراز هویت

این نقطه پایانی عمومی است. هیچ مدرک احراز هویت و هیچ سازمانی نمی‌پذیرد — این همان چیزی است که سایت بازاریابی خودمان و موتورهای پاسخ‌دهنده هوش مصنوعی می‌خوانند.

این نقطه پایانی هیچ شناسه سازمانی را دریافت نمی‌کند. کلید شما در حال حاضر سازمان مربوطه را مشخص می‌کند و پاسخ در همان محدوده ارائه می‌شود.

امتحان کنید

هر چیزی را که داخل براکت‌های زاویه‌دار قرار دارد با مقادیر خودتان جایگزین کنید، و نگهدارنده کلید را با کلیدی از داشبورد خود جایگزین نمایید.

curl -X POST https://api.zinndigital.com/v1/media-offload/claim \
  -H "Content-Type: application/json" \
  -d '{ "code": <string> }'

وارد شده‌اید؟ کنسول API در داشبورد شما شناسه سازمان واقعی و کلید خودتان را پر می‌کند و درخواست را روی API زنده اجرا می‌کند تا بتوانید پاسخ واقعی را ببینید. این نقطه پایانی را در کنسول API باز کنید

جزئیات

Called by the Zinn® Media Offload plugin on a customer's WordPress server. **This endpoint is unauthenticated**: the caller has no session with us and can name no organisation — the pairing code is what names it. Every failure — an expired code, an already-claimed code and a code that never existed — returns the same `422`. Distinguishing them would confirm to a caller that a guessed code exists, which is the only thing between them and another organisation's storage.

بدنه درخواست

نامنوعالزامیچیست
codestringبله
plugin_versionstringخیر
site_urlstringخیر

پاسخ

نامنوعالزامیچیست
tokenstringبلهShown once and never again. Stored by us only as a SHA-256 hash.
site_idstringبله
prefixstringبلهThe key prefix this site's objects live under.
public_base_urlstringخیرWhere a rewritten media URL points. Empty when the bucket is private, in which case the plugin must not rewrite anything.
rewrite_urlsbooleanبله
delete_localbooleanبله

خطاهایی که این نقطه پایانی می‌تواند برگرداند

422 · 429