POST http://sdk.ddyun.com/api/RunApp
运行App
Request Information
URI Parameters
None.
Body Parameters
RunAppParam| Name | Description | Type | Additional information |
|---|---|---|---|
| apppackagename |
要运行的App包名,仅StartType为1时有效 |
string |
None. |
| activityname |
无ActivityName则启动app默认activity,仅StartType为1时有效,可为空 |
string |
None. |
| stringextras |
传入activity的intent的附加参数,无则为空,仅StartType为1时有效,可为空 |
string |
None. |
| starttype |
启动方式: 1:云手机内是执行startActivity接口 2:云手机内部是执行shell指令:am start -a <action> -d <data> |
AppStartType |
None. |
| action |
启动的目标,仅StartType为2时有效。可为空,当StartType为2时,不可与Data参数同时为空 |
string |
None. |
| data |
启动时附加的参数,仅StartType为2时有效。可为空,当StartType为2时,不可与Action参数同时为空 |
string |
None. |
| orderid |
订单号 |
integer |
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",
"ActivityName": "sample string 2",
"StringExtras": "sample string 3",
"StartType": 1,
"Action": "sample string 4",
"Data": "sample string 5",
"OrderId": 6,
"AppKey": "sample string 7",
"Timestamp": 8,
"NonceStr": "sample string 9",
"Sign": "sample string 10"
}
application/x-www-form-urlencoded
Sample:
AppPackageName=&ActivityName=&StringExtras=&StartType=0&Action=&Data=&OrderId=0&AppKey=&Timestamp=0&NonceStr=&Sign=
multipart/form-data
Sample:
Sample not available.
Response Information
Resource Description
运行App
SDKBaseResultOfRunAppResult| Name | Description | Type | Additional information |
|---|---|---|---|
| data | RunAppResult |
None. |
|
| code |
错误码 |
SDKResultCode |
None. |
| msg |
错误消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"Output": "sample string 1"
},
"Code": 0,
"Msg": "sample string 1"
}