Create source
Create a source with a name, announcement and encryption settings, and return its subscription URL.
/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 |
force_encrypt | integer | वैकल्पिक | Force encryption: 0=off (default), 1=always encrypt regardless of UA/UDID or encrypt_enabled; never fall back to plaintext उदाहरण: 0 |
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 |
त्रुटि कोड
101140001प्रतिक्रिया भाषा
एक्स-लैंग हेडर के साथ एपीआई प्रतिक्रिया भाषा को अनुकूलित करें। नीचे दिए गए कोड उदाहरण स्वचालित रूप से आपकी वर्तमान साइट भाषा का उपयोग करते हैं।
X-Lang: hizh, en, zh-TW, vi, ar, es, ruस्वीकार्य भाषा का समर्थन भी किया जाता है; एक्स-लांग प्राथमिकता लेता है। समर्थित भाषाएं साइट भाषा के पतन का पालन करती हैं।
कोड उदाहरण
curl -X POST "https://testypro.iwai.cc,https://cer.xyul.cn,https://cer.iwai.cc/api/appstore/manage/sources" \
-H "X-Lang: hi" \
-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,
"force_encrypt": 0,
"open_black": 0,
"open_black2": 0,
"health_alert": "example_health_alert"
}'नोट्स
- Only sources owned by the API token user on the current site can be managed.
- 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)
Force encryption: 0=off (default), 1=always encrypt regardless of UA/UDID or encrypt_enabled; never fall back to plaintext
Auto-block devices used to add apps: 0/1
Auto-block cracking attempts: 0/1
Complete link-health alert configuration as a JSON object