syndication

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

Approve, reject or retry one channel's post.

Све syndication крајње тачке

Сва документација за програмере →

Аутентификација

Пошаљите API кључ као bearer токен. Ова крајња тачка не наводи конкретну дозволу у спецификацији, па свом кључу доделите најмања неопходна овлашћења и проверите одговор уместо да претпостављате.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

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.

Параметри

НазивТипОбавезноШта је ово
postId (path)stringДа—
action (path)string<approve, reject, retry>Даapprove clears a held post for sending, reject marks it skipped (nothing went wrong — the customer said no), retry re-queues a failed one.

Одговор

НазивТипОбавезноШта је ово
idstringДа—
channelstringДа—
connection_idstringДа—
connection_labelstringДа—
statusstring<drafting, awaiting_approval, queued, posted, failed, needs_reconnect, skipped>Да⛔⛔ needs_reconnect is NOT failed. skipped means the customer said no or the connection was removed — nothing went wrong.
textstringДа—
remote_urlstringДаThe 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 string…
droppedstring[][]Да[[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…
errorstringДаA machine code, never a sentence.
cost_microsintegerДаWhat this post cost us, in USD micros. One line per channel per post.
character_limitintegerДа—
posted_atstringДа—

Грешке које ова крајња тачка може вратити

401 · 403 · 404