# pluginManager.getPluginDevApplyList
Call this API at the server side. For more information, see Server API.
This API supports Cloud Calls. The WeChat DevTools version must be
1.02.1904090or later (download the latest stable version here), and thewx-server-sdkversion must be0.4.0or later.
Obtains all existing plug-in users (for ease of calling by the plug-in developer).
Calling methods:
# HTTPS Call
# Request Address
POST https://api.weixin.qq.com/wxa/devplugin?access_token=TOKEN
# Request Parameters
| Attribute | Type | Default | Required | Description |
|---|---|---|---|---|
| access_token | string | Yes | Credentials to call API | |
| action | string | Yes | Enter "dev_apply_list" in this API. | |
| page | number | Yes | Specifies the page of the data to be pulled. | |
| num | number | Yes | The number of records on each page. |
# Return Value
# Object
JSON data package that is returned
| Attribute | Type | Description |
|---|---|---|
| errcode | number | Error code |
| errmsg | string | Error message |
| apply_list | Array.<Object> | The list of plug-in users |
apply_list is composed as follows
| Property | Type | Description |
|---|---|---|
| appid | string | The AppID of the user |
| status | number | The status of the plug-in |
| nickname | string | The name of the user |
| headimgurl | string | The profile photo of the user |
| categories | Array.<Object> | The category of the user |
| create_time | string | The application time of the user |
| apply_url | string | The Mini Program code of the user |
| reason | string | The application reason of the user |
Valid values of status
| Value | Description | Minimum Version |
|---|---|---|
| 1 | Applying | |
| 2 | Approved | |
| 3 | Rejected | |
| 4 | Timed out |
# Errors
| Error Code | Error Message | Description |
|---|---|---|
| 0 | ok | Normal |
| -1 | System error | |
| 89236 | This plug-in is not available for application. | |
| 89237 | This plug-in has been added. | |
| 89238 | The upper limit of plug-ins that are being applied for or in use is exceeded. | |
| 89239 | The plug-in does not exist. | |
| 89240 | Cannot perform this operation. Only "Pending" requests can be approved/rejected. | |
| 89241 | Cannot perform this operation. Only "Rejected/Timed Out" requests can be deleted. | |
| 89242 | This AppID is not in the request list. | |
| 89243 | "Pending" requests cannot be deleted. | |
| 89044 | The AppID of this plug-in does not exist. |
# Request Data Example
{
"action":"dev_apply_list",
"page": 1,
"num": 10
}
# Return Data Example
{
"errcode": 0,
"errmsg": "ok",
"apply_list": [{
"appid": "xxxxxxxxxxxxx",
"status": 1,
"nickname": "Name",
"headimgurl": "**********",
"reason": "polo has gone",
"apply_url": "*******",
"create_time": "1536305096",
"categories": [{
"first": "ITTechnology",
"second": "Hardware and device"
}]
}]
}
# Cloud Call
Cloud call is a capability provided by Mini Program·Cloud Base that allows you to call WeChat APIs in a cloud function. It must be used via
wx-server-sdkin the cloud function.
# API Calling Method
openapi.pluginManager.getPluginDevApplyList
You need to configure the permissions for the
pluginManager.getPluginDevApplyListAPI viaconfig.json. Details
# Request Parameters
| Attribute | Type | Default | Required | Description |
|---|---|---|---|---|
| action | string | Yes | Enter "dev_apply_list" in this API. | |
| page | number | Yes | Specifies the page of the data to be pulled. | |
| num | number | Yes | The number of records on each page. |
# Return Value
# Object
JSON data package that is returned
| Attribute | Type | Description |
|---|---|---|
| errCode | number | Error code |
| errMsg | string | Error message |
| applyList | Array.<Object> | The list of plug-in users |
applyList is composed as follows
| Property | Type | Description |
|---|---|---|
| appid | string | The AppID of the user |
| status | number | The status of the plug-in |
| nickname | string | The name of the user |
| headimgurl | string | The profile photo of the user |
| categories | Array.<Object> | The category of the user |
| createTime | string | The application time of the user |
| applyUrl | string | The Mini Program code of the user |
| reason | string | The application reason of the user |
Valid values of status
| Value | Description | Minimum Version |
|---|---|---|
| 1 | Applying | |
| 2 | Approved | |
| 3 | Rejected | |
| 4 | Timed out |
# Exceptions
# Object
Thrown Exceptions
| Property | Type | Description |
|---|---|---|
| errCode | number | Error code |
| errMsg | string | Error message |
Valid values of errCode
| Value | Description | Minimum Version |
|---|
# Errors
| Error Code | Error Message | Description |
|---|---|---|
| 0 | ok | Normal |
| -1 | System error | |
| 89236 | This plug-in is not available for application. | |
| 89237 | This plug-in has been added. | |
| 89238 | The upper limit of plug-ins that are being applied for or in use is exceeded. | |
| 89239 | The plug-in does not exist. | |
| 89240 | Cannot perform this operation. Only "Pending" requests can be approved/rejected. | |
| 89241 | Cannot perform this operation. Only "Rejected/Timed Out" requests can be deleted. | |
| 89242 | This AppID is not in the request list. | |
| 89243 | "Pending" requests cannot be deleted. | |
| 89044 | The AppID of this plug-in does not exist. |
# Request Data Example
const cloud = require('wx-server-sdk')
cloud.init()
exports.main = async (event, context) => {
try {
const result = await cloud.openapi.pluginManager.getPluginDevApplyList({
action: 'dev_apply_list',
page: 1,
num: 10
})
console.log(result)
return result
} catch (err) {
console.log(err)
return err
}
}
# Return Data Example
{
"errCode": 0,
"errMsg": "openapi.pluginManager.getPluginDevApplyList:ok",
"applyList": [
{
"appid": "xxxxxxxxxxxxx",
"status": 1,
"nickname": "Name",
"headimgurl": "**********",
"reason": "polo has gone",
"categories": [
{
"first": "ITTechnology",
"second": "Hardware and device"
}
],
"applyUrl": "*******",
"createTime": "1536305096"
}
]
}