Skip to content

hanfangyuan4396/gewechat-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gewechat-python

gewechat python client

Usage

安装 gewechat client

pip install gewechat-client

使用demo

from gewechat_client import GewechatClient

base_url = "http://127.0.0.1:2531/v2/api"
download_url = "http://127.0.0.1:2532/download"
token = "xxx"
app_id = "xxx"

# 创建 GewechatClient 实例
client = GewechatClient(base_url, download_url, token)

try:
    contacts_list = client.fetch_contacts_list(app_id)
    print("Fetched contacts list successfully!")
    print("Contacts list:", contacts_list)
except Exception as e:
    print("Failed to fetch contacts list:", str(e))