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

WeChat program unbindPlugin


May 19, 2021 WeChat Mini Program Development Document


Table of contents


pluginManager.unbindPlugin

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

Remove the added plug-in

How to call:

  • HTTPS call
  • Cloud calls

HTTPS call

The request address

POST https://api.weixin.qq.com/wxa/plugin?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 "unbind" under this interface
plugin_appid string Is Plug-in appId

Returns a value

Object

The returned JSON packet

Property Type Description
errcode number Error code
errmsg string The error message

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":"unbind",
  "plugin_appid":"aaaa"
}

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.unbindPlugin
You need to configure the permissions for the pluginManager.unbindPlugin API in config.json, details

Request parameters

Property Type The default Required Description
action string Is Fill in "unbind" under this interface
pluginAppid string Is Plug-in appId

Returns a value

Object

The returned JSON packet

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

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.unbindPlugin({
        action: 'unbind',
        pluginAppid: 'aaaa'
      })
    return result
  } catch (err) {
    return err
  }
}