syndication

POST /v1/syndication/connections

Connect a social account.

Vituo vyote vya syndication

Uthibitishaji

Tuma ufunguo wa API kama tokeni ya kubeba. Sehemu hii ya mwisho haitaji ruhusa maalum katika maelezo, kwa hivyo ipe ufunguo wako kiwango cha chini kabisa kinachohitajika na uangalie jibu badala ya kukisia.

Mahali ambapo kitambulisho cha shirika lako huwekwa

Kigezo hiki kinachukua org_id kama kigezo cha utafutaji. Iache wazi na simu itashughulikia tawi lako lote la wapangaji; itume ili kupunguza simu iwe ya shirika moja tu.

Kitambulisho cha shirika lako kipo kwenye skrini ya funguo za API katika dashibodi yako, kando ya ufunguo wenyewe. Ni kitambulisho kile kile katika kila ombi unalofanya.

Jaribu

Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.

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> }'

Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API

Maelezo

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.

Vigezo

JinaAinaInayohitajikaKilicho hiki
org_id (query)stringHapanaWhich 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…

Mwili wa ombi

JinaAinaInayohitajikaKilicho hiki
channelstringNdiyo
namestringNdiyo
credentialsobjectNdiyoEvery value the channel's `fields` name. The secret half goes to Vault and is never returned.
byobooleanHapana

Majibu

JinaAinaInayohitajikaKilicho hiki
idstringNdiyo
channelstringNdiyo
namestringNdiyoThe 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.
targetstringNdiyoThe non-secret half — a handle, an instance, a board id.
statusstring<unverified, ready, needs_reconnect, error>Ndiyo⛔⛔ `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_refstringNdiyoThe account the VENDOR said this credential belongs to — discovered.
verify_errorstringNdiyoA machine code the dashboard turns into copy. Never a sentence.
verified_atstringNdiyo
expires_atstringNdiyo⛔ `null` means **no stated expiry**, which is a different fact from "never expires" and must not render as an unqualified green.
byobooleanNdiyoWhether the customer supplied their own developer app.
created_atstringNdiyo

Hitilafu ambazo mwisho huu unaweza kurudisha

401 · 403 · 422