Add Device (Review/Reservation)
Register a device in reservation mode. mobileprovision may be empty while Apple review is pending
/api/addyydeviceKahilingan ng mga Parameter
Ang lahat ng parameter ay maaaring ipasa sa pamamagitan ng Query o Body
| Parameter | Uri | Kailangan | Paglalarawan |
|---|---|---|---|
token | string | Kailangan | User API token Halimbawa: your_api_token_here |
udid | string | Kailangan | Device UDID. Length must be 25 or 40 characters Halimbawa: 00008030-001234567890ABCD |
warranty | string | Mapagpipilian | Warranty type: 0/1/2/3/4/6. Recommended to pass explicitly 012346 Halimbawa: 1 |
shtype | string | Mapagpipilian | Alias of warranty. Used only when warranty is empty 012346 Halimbawa: 1 |
type | string | Mapagpipilian | Pool type: 0=shared, 1=dedicated. Default is 0 01 Halimbawa: 0 |
deviceType | string | Mapagpipilian | Device type: iphone or ipad. Default is iphone iphoneipad Halimbawa: iphone |
beizhu | string | Mapagpipilian | Remark. Up to 40 characters Halimbawa: 预约测试设备 |
Pagtugon
| Parameter | Uri | Kailangan | Paglalarawan |
|---|---|---|---|
code | number | Kailangan | Status code: 1=success, 0=failure Halimbawa: 1 |
msg | string | Kailangan | Response message Halimbawa: 添加成功 |
time | number | Kailangan | Server timestamp (Unix seconds) Halimbawa: 1769675945 |
data | object | Kailangan | Response payload |
data.id | string | Kailangan | Reservation order / certificate ID (typically 5 alphanumeric characters) Halimbawa: A1B2C |
data.pool | number | Kailangan | Pool: 0=shared, 1=dedicated Halimbawa: 0 |
data.addtime | number | Kailangan | Added time (Unix) Halimbawa: 1706500000 |
data.mobileprovision | string | Kailangan | Base64-encoded mobileprovision (may be empty while review is pending) Halimbawa: Base64EncodedString... |
data.p12 | string | Kailangan | Base64-encoded P12 certificate Halimbawa: Base64EncodedString... |
data.state | boolean | Kailangan | Certificate validity state (returned in some branches) Halimbawa: true |
ysucc | string | Kailangan | Success flag, returns "Ysucc" on success Halimbawa: Ysucc |
Error
000Pagtugon sa Wika
Ang mga code na halimbawa sa ibaba ay awtomatikong gumagamit ng kasalukuyang site language mo.
X-Lang: filzh, en, zh-TW, vi, ar, es, ruSinusuportahan din ang tinatanggap na-Language; ang X-Lang ang inuuna. ang mga hindi suportadong wika ay sumusunod sa site language fallback.
Mga Halimbawa ng Kodigo
curl -X POST "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/addyydevice" \
-H "X-Lang: fil" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "token=your_api_token_here&udid=00008030-001234567890ABCD&warranty=1&shtype=1&type=0&deviceType=iphone&beizhu=%E9%A2%84%E7%BA%A6%E6%B5%8B%E8%AF%95%E8%AE%BE%E5%A4%87"Mga Noble
- 参数需通过 Query 或 x-www-form-urlencoded 传递,后端不解析 JSON Body
- shtype 为 warranty 的兼容参数,仅在 warranty 为空时使用
- mobileprovision 为空通常表示审核中,可通过设备列表接口查询状态
Subukin ito sa Console
Punan ang mga parameter sa ibaba at magpadala ng kahilingan upang masubukan. requests pumunta lamang sa API ng site na ito; ang URL ay naka-lock at hindi maaaring baguhin, at isama ang inyong kasalukuyang login cookie.
https://testypro.iwai.cc/api/addyydevice?token=your_api_token_here&udid=00008030-001234567890ABCD&warranty=1&shtype=1&type=0&deviceType=iphone&beizhu=%E9%A2%84%E7%BA%A6%E6%B5%8B%E8%AF%95%E8%AE%BE%E5%A4%87Nakakandado sa lugar na itoUser API token
Device UDID. Length must be 25 or 40 characters
Warranty type: 0/1/2/3/4/6. Recommended to pass explicitly
Alias of warranty. Used only when warranty is empty
Pool type: 0=shared, 1=dedicated. Default is 0
Device type: iphone or ipad. Default is iphone
Remark. Up to 40 characters