Add Device (Review/Reservation)
Register a device in reservation mode. mobileprovision may be empty while Apple review is pending
/api/addyydeviceRichiesta parametri
Tutti i parametri possono essere passati tramite Query o Body
| Parametro | Tipo | Obbligo | Descrizione |
|---|---|---|---|
token | string | Obbligo | User API token Esempio: your_api_token_here |
udid | string | Obbligo | Device UDID. Length must be 25 or 40 characters Esempio: 00008030-001234567890ABCD |
warranty | string | Facoltativo | Warranty type: 0/1/2/3/4/6. Recommended to pass explicitly 012346 Esempio: 1 |
shtype | string | Facoltativo | Alias of warranty. Used only when warranty is empty 012346 Esempio: 1 |
type | string | Facoltativo | Pool type: 0=shared, 1=dedicated. Default is 0 01 Esempio: 0 |
deviceType | string | Facoltativo | Device type: iphone or ipad. Default is iphone iphoneipad Esempio: iphone |
beizhu | string | Facoltativo | Remark. Up to 40 characters Esempio: 预约测试设备 |
Risposta
| Parametro | Tipo | Obbligo | Descrizione |
|---|---|---|---|
code | number | Obbligo | Status code: 1=success, 0=failure Esempio: 1 |
msg | string | Obbligo | Response message Esempio: 添加成功 |
time | number | Obbligo | Server timestamp (Unix seconds) Esempio: 1769675945 |
data | object | Obbligo | Response payload |
data.id | string | Obbligo | Reservation order / certificate ID (typically 5 alphanumeric characters) Esempio: A1B2C |
data.pool | number | Obbligo | Pool: 0=shared, 1=dedicated Esempio: 0 |
data.addtime | number | Obbligo | Added time (Unix) Esempio: 1706500000 |
data.mobileprovision | string | Obbligo | Base64-encoded mobileprovision (may be empty while review is pending) Esempio: Base64EncodedString... |
data.p12 | string | Obbligo | Base64-encoded P12 certificate Esempio: Base64EncodedString... |
data.state | boolean | Obbligo | Certificate validity state (returned in some branches) Esempio: true |
ysucc | string | Obbligo | Success flag, returns "Ysucc" on success Esempio: Ysucc |
Codici di errore
000Lingua di risposta
Personalizza il linguaggio di risposta API con l'intestazione X-Lang. Gli esempi di codice qui sotto utilizzano automaticamente la lingua del tuo sito corrente.
X-Lang: itzh, en, zh-TW, vi, ar, es, ruAccetta-Language è anche supportato; X-Lang prende la priorità.
Esempi di codice
curl -X POST "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/addyydevice" \
-H "X-Lang: it" \
-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"Note
- 参数需通过 Query 或 x-www-form-urlencoded 传递,后端不解析 JSON Body
- shtype 为 warranty 的兼容参数,仅在 warranty 为空时使用
- mobileprovision 为空通常表示审核中,可通过设备列表接口查询状态
Provalo in Console
Compila i parametri qui sotto e invia una richiesta al test. Le richieste vanno solo all'API di questo sito; l'URL è bloccato e non può essere modificato e il cookie di login corrente è incluso.
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%87Bloccato a questo sitoUser 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