fetchAppInfoListByIds

The fetchAppInfoListByIds API is called by the super app to run a query with a unique mini program ID to asynchronously fetch a list of mini programs that are launched to their app. This API provides a pagination capability to return the data.

Method signature

copy
  Future<MiniApiResult<AppInfosResult>> fetchAppInfoListByIds(
      FetchAppsByIdRequest request);

Request parameters

Field

Data type

Required

Description

request

FetchAppsByIdRequest

Yes

An object that is used to set the query conditions of mini programs.

Response parameters

Name

Type

Required

Description

success

Bool

Yes

Indicates whether the API call is successful.

data

AppInfosResult

No

It returns the mini program list when the query is successful.

errorCode

Int

No

Indicates the error code when the API call failed. See the following Error codes section for details.

errorMsg

String

No

Indicates the error description according to the error code when the API call failed. See the following Error codes section for details.

Error codes

Error code

Error message

Further action

2

INVALID_PARAMETER

Parameter error.

Refer to the Request parameters table and check whether all parameter types are correct and if all required parameters are specified.

3

UNKNOWN_ERROR

Server fluctuations.

Retry the request. If the problem persists, please contact overseas_support@service.alibaba.com for help.

10104

NETWORK_ERROR

Network error.

Check the network connection and try again.

Sample

copy
void _fetchAppListByIdOperate() {
  FetchAppsByIdRequest request =
    FetchAppsByIdRequest(appIdList, category: category,relatedEnv: relatedEvn);
  IAPMiniProgram.instance.fetchAppInfoListByIds(request).then((result){
    if(result.success){
      
    }else{
     
    }
  });
}