syndication

POST /v1/syndication/connections

Connect a social account.

Всички крайни точки в syndication

Упълномощаване

Изпратете API ключ като носител (bearer token). Тази точка за достъп не указва конкретно разрешение в спецификацията, затова дайте на ключа си най-малкото необходимо и проверете отговора, вместо да правите предположения.

Където отива идентификаторът на вашата организация

Този ендпойнт приема org_id като параметър на заявката. Оставете го празен и извикването ще обхване цялото ви поддървано дърво; изпратете го, за да ограничите извикването до една организация.

ИД на вашата организация се намира на екрана с API ключове във вашето табло за управление, до самия ключ. Това е същият ИД във всяко заявка, която правите.

Опитайте

Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.

curl -X POST https://api.zinndigital.com/v1/syndication/connections \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "channel": <string>, "name": <string>, "credentials": <object> }'

Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата

Детайли

Stores the credential in Vault and the pointer on the row, then probes it immediately so the customer learns now whether it works rather than when their next article publishes. Gated on `syndication.manage`, which is a separate key from `links.edit` because this posts publicly on the customer's own brand accounts.

Параметри

ИмеТипЗадължителноКакво представлява
org_id (query)stringНеWhich organisation to connect it for, within the caller's subtree. ⛔ Scoped by `syndication.manage`, never by the reading key — a member holding only view on a client org must n…

Тяло на заявката

ИмеТипЗадължителноКакво представлява
channelstringДа
namestringДа
credentialsobjectДаEvery value the channel's `fields` name. The secret half goes to Vault and is never returned.
byobooleanНе

Отговор

ИмеТипЗадължителноКакво представлява
idstringДа
channelstringДа
namestringДаThe 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.
targetstringДаThe non-secret half — a handle, an instance, a board id.
statusstring<unverified, ready, needs_reconnect, error>Да⛔⛔ `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_refstringДаThe account the VENDOR said this credential belongs to — discovered.
verify_errorstringДаA machine code the dashboard turns into copy. Never a sentence.
verified_atstringДа
expires_atstringДа⛔ `null` means **no stated expiry**, which is a different fact from "never expires" and must not render as an unqualified green.
byobooleanДаWhether the customer supplied their own developer app.
created_atstringДа

Грешки, които този крайpoint може да върне

401 · 403 · 422