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

WeChat Small Program Operations Center getSceneList


May 20, 2021 WeChat Mini Program Development Document



operation.getSceneList

This interface should be called on the server side, as detailed in the Service Side API.

Get the source of the access

The request address

GET https://api.weixin.qq.com/wxaapi/log/get_scene?access_token=ACCESS_TOKEN

Request parameters

Property Type The default Required Description
access_token string Is The interface calls the credentials

The returned JSON packet

Property Type Description
errcode number Error code
errmsg string The error message
scene Array.<Object> Access the source

The structure of the scene

Property Type Description
name string The source Chinese name
value string} number

An example response

{
   "errcode": 0,
   "errmsg": "ok",
   "scene": [
      {
          "name": "全部",
          "value": "@_all"
      },
      {
          "name": "小程序历史列表"
          "value": 1
      }
   ]
}