原文:A simple WeChat client written in Python supports session persistence.
翻译:Peter
原文:A simple WeChat client written in Python supports session persistence.
翻译:Peter
基于Web HTTP api的简化版的微信客户端,支持授权,登录,获取消息和接收消息。
如下所示:
from pywxclient.core import Session, SyncClient s1 = Session() c1 = SyncClient(s1) c1.get_authorize_url() # Open the url in web browser c1.authorize() # Continue authorize when returning False c1.login() c1.sync_check() msgs = c1.sync_message() # Here are your wechat messages c1.flush_sync_key() 特征: