iT邦幫忙

0

Apple 開發者帳號裝置達100 個時 API 回應的 detail 會是 ?

https://github.com/myappcloud/appstore-connect-api
去連開發者帳號將 udid 加入
https://developer.apple.com/documentation/appstoreconnectapi/register_a_new_device
知道 udid 加不進去應該是滿了達 100 個裝置了
希望有人知道 Apple 那邊回傳的 detail 是甚麼 ....希望有人告知
Response status 應該是 409 .....
但 409 情況很多 ...
回傳的像是

{
  "errors" : [ {
    "id" : "3f4f8eaa-5daf-4f04-b11a-daec21aaaaaa",
    "status" : "409",
    "code" : "ENTITY_ERROR",
    "title" : "There is a problem with the request entity",
    "detail" : "There are no current certificates on this team matching the provided certificate IDs compatible with IOS_APP_ADHOC profiles."
  } ]
}
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

0
YC
iT邦研究生 2 級 ‧ 2020-01-03 17:30:21
最佳解答

你可以在失敗時,利用GET https://api.appstoreconnect.apple.com/v1/devices
撈出清單,再判斷是否數量到達極限。

知道 udid 加不進去應該是滿了達 100 個裝置了

get可以拿到200筆

echochio iT邦高手 1 級 ‧ 2020-01-03 20:21:21 檢舉

好的這個方式來試試

echochio iT邦高手 1 級 ‧ 2020-01-12 12:28:13 檢舉

用 python 試出來了 ...
PHP 也沒問題

https://www.echochio.nctu.me/2020/01/python-connect-apple-api/

0
小魚
iT邦大師 1 級 ‧ 2020-01-03 08:18:58

不是寫出來了嗎?
看不懂的話就丟Google翻譯吧.

echochio iT邦高手 1 級 ‧ 2020-01-03 12:59:09 檢舉

有寫出了嗎?
apple 每給當裝置到達100個時候 會回應的 detail 是什麼?
貼在上面的是 故意將認證錯的 丟到 apple 回應的 → 認證錯誤
不可能裝置超過也會回 → 認證錯誤
如果真的這樣回那也太瞎了....

我要發表回答

立即登入回答