We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fdd6d5b commit fd6b1cdCopy full SHA for fd6b1cd
README.md
@@ -18,7 +18,7 @@ weworkapi_python 是为了简化开发者对企业微信API接口的使用而设
18
详细使用方法参考examples路径下的测试用例
19
20
# 关于token的缓存
21
-token是需要缓存的,不能每次调用都去获取token,[否者会中频率限制](https://work.weixin.qq.com/api/doc#10013/%E7%AC%AC%E5%9B%9B%E6%AD%A5%EF%BC%9A%E7%BC%93%E5%AD%98%E5%92%8C%E5%88%B7%E6%96%B0access_token)
+token是需要缓存的,不能每次调用都去获取token,[否者会中频率限制](https://work.weixin.qq.com/api/doc#10013/%E7%AC%AC%E5%9B%9B%E6%AD%A5%EF%BC%9A%E7%BC%93%E5%AD%98%E5%92%8C%E5%88%B7%E6%96%B0access_token)
22
在本库的设计里,token是以类里的一个变量缓存的
23
比如api/src/CorpApi.py 里的access_token变量
24
在类的生命周期里,这个accessToken都是存在的, 当且仅当发现token过期,CorpAPI类会自动刷新token
0 commit comments