Add Device (Instant)
Register a device UDID and return mobileprovision and P12 immediately
/api/adddeviceRichiesta 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 (must be 25 or 40 characters) Esempio: 00008030-001234567890ABCD |
warranty | string | Facoltativo | Warranty type: 0/1/2/3/4/6. Recommended to pass explicitly. Missing or invalid values fall back to standard for pricing 012346 Esempio: 1 |
shtype | string | Facoltativo | Alias of warranty. Used only when warranty is empty 012346 Esempio: 1 |
type | string | Facoltativo | Pool type: 0=public, 1=private. 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; truncated if longer) Esempio: 测试设备 |
code | string | Facoltativo | Activation code (optional) Esempio: ABC123XYZ |
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 | Certificate ID (8 characters) Esempio: AB12CD34 |
data.pool | number | Obbligo | Pool: 0=public, 1=private Esempio: 0 |
data.addtime | number | Obbligo | Added time (Unix) Esempio: 1706500000 |
data.mobileprovision | string | Obbligo | Base64-encoded mobileprovision 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 |
data.reused | boolean | Obbligo | Whether an existing certificate was reused (returned only when code is provided and reuse is possible for the same code and UDID) 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/adddevice" \
-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=%E6%B5%8B%E8%AF%95%E8%AE%BE%E5%A4%87&code=ABC123XYZ"Note
- 支持 GET 和 POST(示例使用 POST)
- 参数通过 Query 或 x-www-form-urlencoded 传递,后端不解析 JSON Body
- shtype 为 warranty 的兼容参数,仅在 warranty 为空时使用
- UDID 仅校验长度(25 或 40)
- mobileprovision 与 p12 为 Base64 编码,需自行解码保存
- warranty=4 时不支持独立池(type=1)
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/adddevice?token=your_api_token_here&udid=00008030-001234567890ABCD&warranty=1&shtype=1&type=0&deviceType=iphone&beizhu=%E6%B5%8B%E8%AF%95%E8%AE%BE%E5%A4%87&code=ABC123XYZBloccato a questo sitoUser API token
Device UDID (must be 25 or 40 characters)
Warranty type: 0/1/2/3/4/6. Recommended to pass explicitly. Missing or invalid values fall back to standard for pricing
Alias of warranty. Used only when warranty is empty
Pool type: 0=public, 1=private. Default is 0
Device type: iphone or ipad. Default is iphone
Remark (up to 40 characters; truncated if longer)
Activation code (optional)