3

为什么微信access token获取接口用GET不用POST?

 2 years ago
source link: https://www.oschina.net/question/554557_2323297
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

为什么微信access token获取接口用GET不用POST?

黄冠能 发布于 今天 11:18

我不经常做微信开发,今天偶尔看了一下文档,发现微信公众号获取Access token以及企业微信获取Access token的方法均为GET方法,secret直接通过GET方法传不是会被监听吗?

其中微信公众号获取Access token需要配置IP白名单,这样做可以降低一些风险。但企业微信似乎没有这样做。

我不太明白,为什么不用POST,而用GET。我觉得这个问题比较明显和低级,应该是我自己什么地方搞错了。有人能帮忙解释一下吗?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK