Create source
Create source. Manage only sources owned by this token on the current tenant.
/api/appstore/manage/sourcesअनुरोध पैरामीटर
सभी पैरामीटर क्वेरी या बॉडी के माध्यम से भेजे जा सकते हैं
| पैरामीटर | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
name | string | आवश्यक | Source name, up to 100 characters उदाहरण: 我的软件源 |
message | string | वैकल्पिक | Source announcement उदाहरण: 欢迎使用 |
identifier | string | वैकल्पिक | Source identifier, up to 100 characters |
source_icon | string | वैकल्पिक | HTTP(S) URL of the source icon |
pay_url | string | वैकल्पिक | HTTP(S) URL of the payment page |
encrypt_enabled | integer | वैकल्पिक | Response encryption: 0=off, 1=on (default on when created) उदाहरण: 1 |
open_black | integer | वैकल्पिक | Auto-block devices used to add apps: 0/1 उदाहरण: 0 |
open_black2 | integer | वैकल्पिक | Auto-block cracking attempts: 0/1 उदाहरण: 0 |
health_alert | object | वैकल्पिक | Complete link-health alert configuration as a JSON object |
प्रतिक्रिया
| पैरामीटर | प्रकार | आवश्यक | विवरण |
|---|---|---|---|
code | integer | आवश्यक | 1 indicates success; otherwise a token, validation or source error code उदाहरण: 1 |
msg | string | आवश्यक | Localized result message उदाहरण: 获取成功 |
time | integer | आवश्यक | Unix timestamp in seconds |
data | object | आवश्यक | Allowlisted fields visible to the source owner |
त्रुटि कोड
101140001Response Language
Customize the API response language with the X-Lang header. The code examples below automatically use your current site language.
X-Lang: enzh, en, zh-TW, vi, ar, es, ruAccept-Language is also supported; X-Lang takes priority. Unsupported languages follow the site language fallback.
कोड उदाहरण
curl -X POST "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/appstore/manage/sources" \
-H "X-Lang: en" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "我的软件源",
"message": "欢迎使用",
"identifier": "example_identifier",
"source_icon": "example_source_icon",
"pay_url": "example_pay_url",
"encrypt_enabled": 1,
"open_black": 0,
"open_black2": 0,
"health_alert": "example_health_alert"
}'नोट्स
- Use HTTPS. Administrator-only fields such as uid, tenant_id, is_official and expiry time are rejected.
- Responses omit owner identities, draft internals and secrets; creating sources/apps is subject to subscription, trial and quota limits.
कंसोल में आज़माएं
नीचे दिए गए पैरामीटर भरें और परीक्षण के लिए अनुरोध भेजें। अनुरोध केवल इस साइट के API पर ही जाता है; URL लॉक है और इसे बदला नहीं जा सकता, और आपका वर्तमान लॉगिन कुकी शामिल है।
https://testypro.iwai.cc/api/appstore/manage/sourcesइस साइट के लिए लॉक किया गया हैSource name, up to 100 characters
Source announcement
Source identifier, up to 100 characters
HTTP(S) URL of the source icon
HTTP(S) URL of the payment page
Response encryption: 0=off, 1=on (default on when created)
Auto-block devices used to add apps: 0/1
Auto-block cracking attempts: 0/1
Complete link-health alert configuration as a JSON object