简体   繁体   English

微信的正确客户端名称是什么

[英]What is the correct client name for WeChat

What to do if Python says "No module named 'wechat_client'"?如果 Python 提示“没有名为‘wechat_client’的模块”怎么办? If the client name for WeChat isn't correct, then what should be the correct name?如果微信的客户端名称不正确,那么正确的名称应该是什么? Thanks a lot.非常感谢。

>>> 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()

From Official Repo来自官方回购

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 python中SSL客户端的正确证书用途是什么? - What is the correct certificate purpose for SSL client in python? 管道中的Hyperparametrs XGBOOST的正确名称是什么? - What is the correct name for Hyperparametrs XGBOOST in a Pipeline? 这是包装脚本吗? 正确的名字是什么? (蟒蛇) - Is this a wrapper script? What is the correct name for it? (Python) Python Extension-thingy的正确名称是什么? - What's the correct name for a Python Extension-thingy? 用于区分具有相同名称的节点的正确图形数据结构是什么? - What is the correct graph data structure to differentiate between nodes with the same name? imaplib - Gmail中存档/所有邮件的正确文件夹名称是什么? - imaplib - What is the correct folder name for Archive/All Mail in Gmail? 通过函数名称找出烧瓶端点的正确方法是什么? - what's the correct way to find out flask's endpoint by function name? 使用列名和行索引从 pandas dataframe 中选择值的正确方法是什么? - What is the correct way of selecting value from pandas dataframe using column name and row index? 编写 Boto3 过滤器以使用自定义标签名称的正确方法是什么? - What is the correct ways to write Boto3 filters to use customise tag name? 当标头名称包含`_`下划线时,获取Django标头值的正确格式是什么 - What is the correct format to get Django Header value when Header name contain `_` underscore
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM