Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat applet getPluginDevApplyList


May 19, 2021 WeChat Mini Program Development Document


Table of contents


pluginManager.getPluginDevApplyList

This interface should be called on the server side, as detailed in the Service Side API.
This interface supports cloud calls. Developer tool version required . . . 1.02.1904090 (latest stable download)
wx-server-sdk >= 0.4.0

Get all current plug-in users (for plug-in developers to call)

How to call:

  • HTTPS call
  • Cloud calls

HTTPS call

The request address

POST https://api.weixin.qq.com/wxa/devplugin?access_token=TOKEN

Request parameters

Property Type The default Required Description
access_token string Is The interface calls the credentials
action string Is Fill in "I'm dev_apply_list" dev_apply_list
page number Is To pull the data on page
Num number Is The number of records per page

Returns a value

Object

The returned JSON packet

Property Type Description
errcode number Error code
errmsg string The error message
apply_list Array.<Object> A list of plug-in users

apply_list structure of the system

Property Type Description
appid string The user's appid
status number The state of the plug-in
nickname string The user's nickname
headimgurl string The user's avatar
categories Array.<Object> The class of the user
create_time string The user's application time
apply_url string The user's small program code
reason string Description of the user's application

The legal value of the status

Value Description The lowest version
1 In the application
2 The application is passed
3 Rejected
4 Timed out

Error

Error code The error message Description
0 Ok Normal
-1 System error
89236 The plug-in cannot be requested
89237 The plug-in has been added
89238 The maximum number of plug-ins to apply for or use has been reached
89239 The plug-in does not exist
89240 This cannot be done and only "to be confirmed" applications can be operationally passed/rejected
89241 This operation cannot be performed and only requests for Rejected/Timed can be deleted operationally
89242 The appid is not on the application list
89243 Applications for "to be confirmed" cannot be deleted
89044 The plug-in appid does not exist

An example of requesting data

{
  "action":"dev_apply_list",
  "page": 1,
  "num": 10
}

Return an example of the data

{
  "errcode": 0,
  "errmsg": "ok",
  "apply_list": [{
    "appid": "xxxxxxxxxxxxx",
    "status": 1,
    "nickname": "名称",
    "headimgurl": "**********",
    "reason": "polo has gone",
    "apply_url": "*******",
    "create_time": "1536305096",
    "categories": [{
      "first": "IT科技",
      "second": "硬件与设备"
    }]
  }]
}

Cloud calls

Cloud call is the ability provided by the small program Cloud Development to call WeChat open interfaces in cloud functions and need to be used in cloud functions via wx-server-sdk.

The interface method

openapi.pluginManager.getPluginDevApplyList
You need to configure the permissions for the pluginManager.getPluginDevApplyList API in config.json, details

Request parameters

Property Type The default Required Description
action string Is Fill in "I'm dev_apply_list" dev_apply_list
page number Is To pull the data on page
Num number Is The number of records per page

Returns a value

Object

The returned JSON packet

Property Type Description
errCode number Error code
errMsg string The error message
applyList Array.<Object> A list of plug-in users

The structure of applyList

Property Type Description
appid string The user's appid
status number The state of the plug-in
nickname string The user's nickname
headimgurl string The user's avatar
categories Array.<Object> The class of the user
createTime string The user's application time
applyUrl string The user's small program code
reason string Description of the user's application

The legal value of the status

Value Description The lowest version
1 In the application
2 The application is passed
3 Rejected
4 Timed out

Abnormal

Object

The exception thrown

Property Type Description
errCode number Error code
errMsg string The error message

The legal value of errCode

Value Description The lowest version

Error

Error code The error message Description
0 Ok Normal
-1 System error
89236 The plug-in cannot be requested
89237 The plug-in has been added
89238 The maximum number of plug-ins to apply for or use has been reached
89239 The plug-in does not exist
89240 This cannot be done and only "to be confirmed" applications can be operationally passed/rejected
89241 This operation cannot be performed and only requests for Rejected/Timed can be deleted operationally
89242 The appid is not on the application list
89243 Applications for "to be confirmed" cannot be deleted
89044 The plug-in appid does not exist

An example of requesting data

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
      })
    return result
  } catch (err) {
    return err
  }
}

Return an example of the data

{
  "errCode": 0,
  "errMsg": "openapi.pluginManager.getPluginDevApplyList:ok",
  "applyList": [
    {
      "appid": "xxxxxxxxxxxxx",
      "status": 1,
      "nickname": "名称",
      "headimgurl": "**********",
      "reason": "polo has gone",
      "categories": [
        {
          "first": "IT科技",
          "second": "硬件与设备"
        }
      ],
      "applyUrl": "*******",
      "createTime": "1536305096"
    }
  ]
}