帖文
取得帖文
回傳帖文及各網絡的狀態、發布後的連結和失敗時的錯誤。正式模式可讀 Workspace 內任何帖文,測試模式讀模擬帖文。
授權
Authorizationstring必填你的個人金鑰或 OAuth 存取權杖,以
Bearer <token>傳送。
路徑參數
idstring必填帖文的識別碼。
回應
200application/json
帖文及各目標的狀態。
idstring必填帖文的識別碼
statusstring必填跨所有網絡的狀態;
partial:在一個網絡發布成功,在另一個失敗允許的值:
draftscheduledpublishingpublishedsent_to_inboxfailedpartialestablishmentIdstring必填帖文所屬的門市
createdAtstring<date-time>必填帖文的建立時間
targetsobject[]必填每個網絡和帳號一條:同一網絡上的兩個帳號對應兩條
顯示子屬性
platformstring必填目標所在的網絡
accountIdstring必填負責發布的帳號(
GET /v1/establishments/:id/accounts)statestring必填目標在其網絡上的狀態
允許的值:
draftscheduledpublishingpublishedsent_to_inboxfailedpublishedAtstring<date-time>目標發布的時間
permalinkstring指向網絡上已發布帖文的連結
errorstring網絡拒絕的原因
scheduledAtstring<date-time>帖文預計發布的時間
401
權杖缺失、未知、已過期或已被撤銷。
403
權杖沒有 posts:read scope。
404
post_not_found:不在該 Workspace 內(測試模式下為不在授權範圍內)。
4XXapplication/json
其他任何錯誤,以錯誤結構回傳。