POST http://sdk.ddyun.com/api/CreatePresetAppTask
创建预置应用任务
Request Information
URI Parameters
None.
Body Parameters
CreatePresetAppTaskParamName | Description | Type | Additional information |
---|---|---|---|
apppackagename |
应用包名 |
string |
None. |
downurl |
应用的下载地址 |
string |
None. |
appname |
应用名称 |
string |
None. |
nodeidstr |
目标宿主机Id,多个则以逗号分隔 |
string |
None. |
appkey |
商户Key |
string |
None. |
timestamp |
时间戳 |
integer |
None. |
noncestr |
随机字符,使签名不可预测 |
string |
None. |
sign |
签名信息 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "AppPackageName": "sample string 1", "DownUrl": "sample string 2", "AppName": "sample string 3", "NodeIdStr": "sample string 4", "AppKey": "sample string 5", "Timestamp": 6, "NonceStr": "sample string 7", "Sign": "sample string 8" }
application/x-www-form-urlencoded
Sample:
AppPackageName=&DownUrl=&AppName=&NodeIdStr=&AppKey=&Timestamp=0&NonceStr=&Sign=
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
创建预置应用任务
SDKBaseResultOfCreatePresetAppTaskResultName | Description | Type | Additional information |
---|---|---|---|
data | CreatePresetAppTaskResult |
None. |
|
code |
错误码 |
SDKResultCode |
None. |
msg |
错误消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Data": { "TaskId": [ { "TaskId": 1, "DeviceArea": "sample string 2" }, { "TaskId": 1, "DeviceArea": "sample string 2" } ] }, "Code": 0, "Msg": "sample string 1" }