appstore_reply_customer_review
在 App Store 評論下發佈開發者的公開回覆,取代先前的回覆。
在 App Store 評論下發佈開發者的公開回覆。先前的回覆會先刪除,再以新回覆取代。Apple 會在簡短檢查後顯示回覆。回覆是公開的,會以 App 的回應形式顯示:只傳送對方同意的內容。
| 唯讀 | 破壞性 | 冪等 |
|---|---|---|
| 否 | 否 | 否 |
輸入
| 輸入 | 類型 | 必填 | 預設值 | 作用 |
|---|---|---|---|---|
teamId |
字串(UUID) | yes | — | 團隊,來自 list_teams。 |
projectId |
字串(UUID) | 與 appId 二擇一 |
— | 這個 App 所屬的專案,來自 list_projects:這是指定 App 的一般方式。App 是 App Store Connect 上 bundle ID 與該專案建置的 bundle ID 相同的那一個。兩者都傳送時,會使用 projectId。 |
appId |
string | 與 projectId 二擇一 |
— | 來自 appstore_list_apps 的 App Store Connect App ID,用於沒有專案建置的 App。 |
appleTeamId |
字串(UUID) | no | 所有已連結的 Apple 團隊 | 團隊的其中一個 Apple 團隊,來自 appstore_list_apple_teams。搭配 appId 時,只會在這個 Apple 團隊中尋找該 App。搭配 projectId 時不需要:由專案的 App 決定。 |
reviewId |
string | yes | — | 評論,來自 appstore_customer_reviews。 |
reply |
字串,1 到 5,970 個字元 | yes | — | 回覆內容。 |
每個工具對輸入進行的檢查,請參閱 伺服器與登入。
結果
一個 JSON 物件,同時以文字和 structuredContent 傳回。
| 欄位 | 說明 |
|---|---|
replied |
true |
replaced |
取代了先前的回覆時為 true |
state |
Apple 標示的回覆狀態,通常為 PENDING_PUBLISH |
{
"replied": true,
"replaced": false,
"state": "PENDING_PUBLISH"
}錯誤
每個錯誤都會以工具錯誤(isError: true)傳回。斜體 文字代表句中的實際值。所有工具都可能傳回的錯誤,請參閱 伺服器與登入。
| 訊息 | 何時出現 | 處理方式 |
|---|---|---|
| reviewId is not a valid id. | reviewId 為空或包含路徑分隔符號 |
使用 appstore_customer_reviews 傳回的 ID |
| Pass projectId, or appId from appstore_list_apps. | projectId 和 appId 都沒有傳送 |
傳送其中一個 |
| This Project has not been built for iOS yet, so it has no bundle id to find its app by. Ask the Team’s Agent to build it, or pass appId. | 該專案從未建置過 iOS 版本 | 請專案的 Agent 建置 iOS 版本(send_message),或用 appId 指定 App |
| This Project has no app on App Store Connect yet. Create one with appstore_create_app (its bundle id is the Project’s), or pass appId. | 團隊已連結的 Apple 團隊中,沒有 App 的 bundle ID 與專案相同,或沒有連結任何 Apple 團隊 | 用 appstore_create_app 建立 App,或用 appId 指定另一個 App |
| No connected Apple team of this Team has that app. See appstore_list_apps. | appId 不是任何已連結 Apple 團隊(或 appleTeamId)中的 App |
從 appstore_list_apps 取得 ID |
| App Store Connect: Apple’s sentence | Apple 拒絕了請求。後面最多附上 Apple 自己的五句說明,Apple 指出相關欄位時會在括號中註明。App Store Connect 中有待接受的 Apple 協議時,也會以這種方式被拒絕 | 依照 Apple 的說明處理。協議由 Apple Developer 帳號的帳號持有人在 App Store Connect 中接受(商務 › 協議) |
| App Store Connect answered status. Try again in a moment. | Apple 拒絕了,但沒有說明原因 | 稍後再試 |
如果先前的回覆刪除後 Apple 拒絕了新回覆,該評論將沒有回覆;請重新發佈。
範例
{
"name": "appstore_reply_customer_review",
"arguments": {
"teamId": "00000000-0000-0000-0000-000000000000",
"projectId": "00000000-0000-0000-0000-000000000000",
"reviewId": "00000000-0000-0000-0000-000000000000",
"reply": "Thanks: version 1.2.1 fixes the crash."
}
}