syndication

POST /v1/syndication/connections/{connectionId}/verify

Check a connection against the live channel.

Všechny koncové body syndication

Všechny dokumenty pro vývojáře

Autentizace

Odešlete klíč API jako bearer token. Tento koncový bod ve specifikaci uvádí specifické oprávnění, takže svému klíči udělte to nejmenší možné a místo předpokladů zkontrolujte odpověď.

Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

curl -X POST https://api.zinndigital.com/v1/syndication/connections/{connectionId}/verify \
  -H "Authorization: Bearer zdk_live_…"

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

⛔ A failure is a 200 carrying a non-ready status, not an error response — "we could not reach it" is the answer to the question that was asked. Three outcomes: ready, needs_reconnect (the customer must act) and error (we reached the vendor and it said no for another reason). Gated on syndication.manage.

Parametry

NázevTypPožadovánoCo to je
connectionId (path)stringAno

Odpověď

NázevTypPožadovánoCo to je
idstringAno
channelstringAno
namestringAnoThe customer's own name for it. ⛔ name on the wire, label on the model: Field.label is DRF's own attribute and shadowing it is silent at runtime.
targetstringAnoThe non-secret half — a handle, an instance, a board id.
statusstring<unverified, ready, needs_reconnect, error>Ano⛔⛔ needs_reconnect is NOT a failure — the credential lapsed and only the customer can fix it. unverified means we have not looked, which is a third fact and not a quiet green.
account_refstringAnoThe account the VENDOR said this credential belongs to — discovered.
verify_errorstringAnoA machine code the dashboard turns into copy. Never a sentence.
verified_atstringAno
expires_atstringAnonull means no stated expiry, which is a different fact from "never expires" and must not render as an unqualified green.
byobooleanAnoWhether the customer supplied their own developer app.
created_atstringAno

Chyby, které může tento koncový bod vrátit

401 · 403 · 404