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

WeChat program setShowStatus


May 19, 2021 WeChat Mini Program Development Document


Table of contents


nearbyPoi.setShowStatus

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

Show/uns show nearby programs

How to call:

  • HTTPS call
  • Cloud calls

HTTPS call

The request address

POST https://api.weixin.qq.com/wxa/setnearbypoishowstatus?access_token=ACCESS_TOKEN

Request parameters

Property Type The default Required Description
access_token string Is The interface calls the credentials
poi_id string Is Nearby location ID
status number Is Whether to show

The legal value of the status

Value Description The lowest version
0 Don't show
1 Show

Returns a value

Object

The JSON data returned

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

Error

Error code The error message Description
0 Ok Normal
47001 POST data json is in the wrong format
20002 The POST parameter is illegal
44002 POST data is empty
92000 This business qualification has been added, do not add it repeatedly
92002 The number of nearby places added reaches the online level and cannot continue to be added
92003 The location is already occupied by other small programs
92004 Nearby functions are blocked
92005 The location is under review
92006 The location is showing the small program
92007 Location audit failed
92008 The program is not shown at that location
93009 The small program is not on the shelf or is not visible
93010 The location does not exist
93011 Personal type gadgets are not available
93011 Personal type gadgets are not available
93012 Non-ordinary types of small programs (store programs, small store programs, etc.) are not available
93013 Getting address details from Tencent Maps failed
93014 The same qualification number is added repeatedly

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.nearbyPoi.setShowStatus
Permissions for the nearbyPoi.setShowStatus API need to be configured in config.json, details

Request parameters

Property Type The default Required Description
poiId string Is Nearby location ID
status number Is Whether to show

The legal value of the status

Value Description The lowest version
0 Don't show
1 Show

Returns a value

Object

The JSON data returned

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

Abnormal

Object

The exception thrown

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

The legal value of errCode

Value Description The lowest version

Error

Error code The error message Description
0 Ok Normal
47001 POST data json is in the wrong format
20002 The POST parameter is illegal
44002 POST data is empty
92000 This business qualification has been added, do not add it repeatedly
92002 The number of nearby places added reaches the online level and cannot continue to be added
92003 The location is already occupied by other small programs
92004 Nearby functions are blocked
92005 The location is under review
92006 The location is showing the small program
92007 Location audit failed
92008 The program is not shown at that location
93009 The small program is not on the shelf or is not visible
93010 The location does not exist
93011 Personal type gadgets are not available
93011 Personal type gadgets are not available
93012 Non-ordinary types of small programs (store programs, small store programs, etc.) are not available
93013 Getting address details from Tencent Maps failed
93014 The same qualification number is added repeatedly