syndication

POST /v1/syndication/posts/{postId}/{action}

Approve, reject or retry one channel's post.

Të gjitha pikat e skajshme syndication

Autentifikimi

Drgoni një çelës API si një token mbajtës. Ky pikëndalim nuk specifikon një leje specifike në specifikim, prandaj jepini çelësit tuaj minimumin e nevojshëm dhe kontrolloni përgjigjen në vend që të supozoni.

Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.

Provoje

Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.

curl -X POST https://api.zinndigital.com/v1/syndication/posts/{postId}/{action} \
  -H "Authorization: Bearer zdk_live_…"

Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së

Detajet

Approving queues the post for the next sweep; rejecting settles it `skipped` because nothing went wrong; retrying re-queues a `failed` or `needs_reconnect` post — reconnect the account first, or it will settle the same way again. Gated on `syndication.manage`.

Parametrat

EmriLlojiKërkohetÇfarë është kjo
postId (path)stringPo
action (path)string<approve, reject, retry>Po`approve` clears a held post for sending, `reject` marks it `skipped` (nothing went wrong — the customer said no), `retry` re-queues a failed one.

Përgjigja

EmriLlojiKërkohetÇfarë është kjo
idstringPo
channelstringPo
connection_idstringPo
connection_labelstringPo
statusstring<drafting, awaiting_approval, queued, posted, failed, needs_reconnect, skipped>Po⛔⛔ `needs_reconnect` is NOT `failed`. `skipped` means the customer said no or the connection was removed — nothing went wrong.
textstringPo
remote_urlstringPoThe live post, read back from the channel where it returns one. ⛔ Empty where the vendor gives us nothing to build a URL from (a Slack incoming webhook answers the literal strin…
droppedstring[][]Po`[[field, reason], …]` — what this channel could not carry, and WHY. The reason travels: "no image endpoint" and "the upload was refused" are different problems with different n…
errorstringPoA machine code, never a sentence.
cost_microsintegerPoWhat this post cost us, in USD micros. One line per channel per post.
character_limitintegerPo
posted_atstringPo

Gabimet që ky pikëndalim mund të kthejë

401 · 403 · 404