Method description
Queries all version numbers of a private App resource.
Call method
GetAppRevisionsResponse getAppRevisions(String appName) throws ClientException;
GetAppRevisionsResponse getAppRevisions(GetAppRevisionsRequest req) throws ClientException;
Parameter description
Parameter |
Type |
Required or not |
Description |
appName |
String |
Yes |
Name of the App |
Response description
- If the call succeeds, a GetAppRevisionsResponse instance is returned. You can use getAppRevisions to obtain the list of App versions (AppRevisions).
Attributes of AppRevision
Attribute |
Type |
Description |
revision |
number |
Version number of the App |
updateTime |
string |
Version update time of the App |
- If the call fails, a ClientException is thrown.
Sample code
try{
GetAppRevisionsResponse getAppRevisionsResponse = client.getAppRevisions("myApp");
List<AppRevision> appRevisions = getAppRevisionsResponse.getAppRevisions();
//The method is successfully called.
}catch(ClientException e){
e.printStackTrace();
//The method fails to be called.
}