Membuat aplikasi Android. Sebelum Anda dapat menginstal aplikasi, Anda harus menggunakan operasi API ini untuk membuatnya. Aplikasi tidak diunduh saat dibuat. Aplikasi hanya diunduh selama penginstalan. Pastikan cloud phone dapat mengakses URL unduhan.
Deskripsi operasi
When you create an application, you can pass the application information in one of the following two ways:
-
Method 1: Pass an application from the WUYING Workspace app center.
-
Supported methods:
-
Method 1: Pass
FileNameandFilePath. Both parameters are required. -
Method 2: Pass
OssAppUrl.
-
-
Rule: If you pass an application from the WUYING Workspace app center, you must use at least one of the two methods. If you use both, Method 1 takes precedence.
-
Prerequisite: Log on to the Elastic Desktop Service Enterprise console. Follow the on-screen instructions to upload your application file to the WUYING Workspace app center. You can then obtain the required request parameters for this operation:
FileNameandFilePath, orOssAppUrl.
-
-
Method 2: Pass a custom application.
-
Supported method: Pass
CustomAppInfo. -
Rule: If you pass
CustomAppInfo, all six fields in this object parameter are required.
-
If you use both Method 1 and Method 2, the information passed in Method 2 takes precedence.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| AppName |
string |
No |
Nama aplikasi. |
应用名称1 |
| FileName |
string |
No |
Nama file aplikasi yang disimpan di Object Storage Service (OSS). Parameter ini dan Catatan
|
testApp.apk |
| FilePath |
string |
No |
Alamat penyimpanan file aplikasi di bucket OSS. Parameter ini dan Catatan
|
tenant/1642150****/ |
| IconUrl |
string |
No |
URL ikon aplikasi. |
https://www.example.com/icon.png |
| OssAppUrl |
string |
No |
Alamat OSS aplikasi. Catatan
|
http://testApp.apk |
| BizRegionId |
string |
No |
ID wilayah. |
cn-hangzhou |
| InstallParam |
string |
No |
Parameter penginstalan. Parameter penginstalan |
-d |
| Description |
string |
No |
Deskripsi aplikasi. |
应用描述 |
| CustomAppInfo |
object |
No |
Informasi aplikasi kustom. Catatan
|
|
| DownloadUrl |
string |
No |
The download URL of the application. |
http://testApp.apk |
| Version |
string |
No |
The application version. |
1.0.0 |
| VersionCode |
string |
No |
The application version code. |
10000 |
| PackageName |
string |
No |
The application package name. |
com.example.demo |
| ApkSize |
string |
No |
The size of the .apk file. Unit: MB. |
10 |
| Md5 |
string |
No |
The MD5 value of the .apk package. |
df3f46ce5844ddb278f14c5a9cd2**** |
| SignApk |
string |
No |
Apakah akan melakukan penandatanganan sistem. Valid values:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The returned parameters. |
||
| AppId |
integer |
The application ID. |
1234 |
| RequestId |
string |
The request ID. |
E5138F7E-46B5-526A-8C99-82DEAE6B**** |
Contoh
Respons sukses
JSONformat
{
"AppId": 1234,
"RequestId": "E5138F7E-46B5-526A-8C99-82DEAE6B****"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.