Basic interface - Get the WeChat server IP address

Basic interface - Get the WeChat server IP address

If the official account needs to know the IP address list of the WeChat server for security reasons in order to make relevant restrictions, you can use this interface to obtain the WeChat server IP address list.

Interface call request description

http request method: GET
https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token=ACCESS_TOKEN

Parameter Description

Return Description

Under normal circumstances, WeChat will return the following JSON data packet to the official account:

  1. {
  2. "ip_list" :[ "127.0.0.1" , "127.0.0.1" ]
  3. }

When an error occurs, WeChat will return an error code and other information. An example of a JSON data packet is as follows (this example is an invalid AppID error):

{"errcode":40013,"errmsg":"invalid appid"}

<<:  Basic API - Get access token

>>:  APICloud builds an ecosystem to accelerate mobile development

Recommend

Plant these flowers now and harvest a sea of ​​flowers in summer!

Spring is here, and it's time to enjoy the fl...

The life cycle of weak

The life cycle of weak We all know that weak refe...

Channel operation strategy, it is not difficult to attract traffic

Many people would ask, why do we spend so much mo...

【Dream Complete User Manual】Control your dreams and turn your life around

【Dream Complete User Manual】Control your dreams a...

17 Swift Best Practices

[[151452]] Preface This post is a compilation of ...

Samsung S5 octa-core version exposed

In the past, Samsung's official documents acci...

Do you know the "holy grail reaction" in chemistry?

Produced by: Science Popularization China Author:...

Uncover the secrets of user growth from Weibo product details

The motivation for writing this article was the d...