Files
sixGuoDjango/wechat_项目工具包/企业微信工具包/获取配置了客户联系功能的成员列表.py
T
2026-08-02 14:07:04 +08:00

40 lines
1.1 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""注释"""
from requests import get
from wechat_token.token工具包 import sixToken
class wecom获取配置了客户联系功能的成员列表:
"""
获取配置了客户联系功能的成员列表
最后更新:2023/12/01
企业和第三方服务商可通过此接口获取配置了客户联系功能的成员列表。
请求方式:GET(HTTPS)
请求地址:https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_follow_user_list?access_token=ACCESS_TOKEN
"""
@classmethod
def 获取配置了客户联系功能的成员列表( cls ) -> dict:
"""
获取配置了客户联系功能的成员列表
"""
wecom_token = sixToken.get_wecom_token( )
url = f"https://qyapi.weixin.qq.com/cgi-bin/externalcontact/get_follow_user_list?access_token={wecom_token}"
data = get( url=url ).json( )
print( data )
return data
if __name__ == '__main__':
print( wecom获取配置了客户联系功能的成员列表.获取配置了客户联系功能的成员列表( ) )