Skip to content

Commit 513d905

Browse files
authored
Update README.md
1 parent ff5492e commit 513d905

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

22
# About
33
weworkapi_python 是为了简化开发者对企业微信API接口的使用而设计的,API调用库系列之python版本    
4-
本库仅做示范用,并不保证完全无bug;另外,作者会不定期更新本库,但不保证与官方API接口文档同步,因此一切以[官方文档](https://work.weixin.qq.com/api/doc)为准。
4+
本库仅做示范用,并不保证完全无bug;
5+
作者会不定期更新本库,但不保证与官方API接口文档同步,因此一切以[官方文档](https://work.weixin.qq.com/api/doc)为准。
56

67
# Director
78

@@ -21,7 +22,7 @@ token是需要缓存的,不能每次调用都去获取token(否者会中频
2122
在本库的设计里,token是以类里的一个变量缓存的
2223
比如api/src/CorpApi.py 里的access_token变量
2324
在类的生命周期里,这个accessToken都是存在的, 当且仅当发现token过期,CorpAPI类会自动刷新token
24-
刷新机制在 api/src/AbstractApi.py
25+
刷新机制在 api/src/AbstractApi.py
2526
所以,使用时,只需要全局实例化一个CorpAPI类,不要析构它,就可一直用它调函数,不用关心 token
2627
```
2728
api = CorpAPI(corpid, corpsecret);

0 commit comments

Comments
 (0)