Add source app
Add source app. Manage only sources owned by this token on the current tenant.
/api/appstore/manage/sources/:source_id/appsKahilingan ng mga Parameter
Ang lahat ng parameter ay maaaring ipasa sa pamamagitan ng Query o Body
| Parameter | Uri | Kailangan | Paglalarawan |
|---|---|---|---|
source_id | string | Kailangan | Source ID owned by this user on the current site Halimbawa: 12345678 |
name | string | Kailangan | App name, up to 100 characters Halimbawa: 演示应用 |
download_url | string | Kailangan | HTTP(S) URL for downloading the app Halimbawa: https://example.com/app.ipa |
version | string | Mapagpipilian | App version Halimbawa: 1.0 |
type | string | Mapagpipilian | App type |
version_desc | string | Mapagpipilian | Release notes |
icon_url | string | Mapagpipilian | HTTP(S) URL of the app icon |
tint_color | string | Mapagpipilian | Theme color |
size | string | Mapagpipilian | File size |
is_lanzou | integer | Mapagpipilian | LanZou Cloud link: 0/1 |
is_locked | integer | Mapagpipilian | Requires a license key to unlock: 0/1 |
ios_version_limit | string | Mapagpipilian | iOS version restriction |
weigh | integer | Mapagpipilian | Sort weight |
Pagtugon
| Parameter | Uri | Kailangan | Paglalarawan |
|---|---|---|---|
code | integer | Kailangan | 1 indicates success; otherwise a token, validation or source error code Halimbawa: 1 |
msg | string | Kailangan | Localized result message Halimbawa: 获取成功 |
time | integer | Kailangan | Unix timestamp in seconds |
data | object | Kailangan | Allowlisted fields visible to the source owner |
Error
101140001Pagtugon 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/appstore/manage/sources/12345678/apps" \
-H "X-Lang: fil" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "演示应用",
"download_url": "https://example.com/app.ipa",
"version": "1.0",
"type": "example_type",
"version_desc": "example_version_desc",
"icon_url": "example_icon_url",
"tint_color": "example_tint_color",
"size": "example_size",
"is_lanzou": 1,
"is_locked": 1,
"ios_version_limit": "example_ios_version_limit",
"weigh": 1
}'Mga Noble
- 必须使用 HTTPS 传输。接口不接受 uid、tenant_id、is_official、到期时间等管理员字段。
- 响应不包含拥有者身份、内部草稿或敏感密钥;创建源和应用受订阅、试用及数量限制。
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/appstore/manage/sources/12345678/appsNakakandado sa lugar na itoSource ID owned by this user on the current site
App name, up to 100 characters
HTTP(S) URL for downloading the app
App version
App type
Release notes
HTTP(S) URL of the app icon
Theme color
File size
LanZou Cloud link: 0/1
Requires a license key to unlock: 0/1
iOS version restriction
Sort weight