ac
ac.developer.createMiniApp
Create a MiniApp owned by the current developer.
权限:developer
宿主 API
功能描述
Create a MiniApp owned by the current developer.
调用方式
const result = await ac.developer.createMiniApp({
"name": "string"
});
参数说明
| 属性 | 类型 | 必填 | 说明 |
|---|---|---|---|
name | string | 是 | - |
slug | string | 否 | - |
appId | string | 否 | - |
app_id | string | 否 | - |
description | string | 否 | - |
status | string | 否 | - |
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"slug": {
"type": "string"
},
"appId": {
"type": "string"
},
"app_id": {
"type": "string"
},
"description": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"published"
]
}
}
}
返回值
{
"type": "object"
}
错误码
该 API 当前没有声明专属错误码。
Manifest 声明
Agent 生成小程序时,如果页面会调用该 API,应在 manifest.apisUsed 中声明完整 API 名称。
{
"permissions": [
"developer"
],
"apisUsed": [
"ac.developer.createMiniApp"
]
}
平台支持
| 平台 | 支持情况 |
|---|---|
| Web | 支持 |
| Android SDK | 支持 |
| iOS SDK | 支持 |
| Flutter SDK | 支持 |