Skip to content

用户列表

历史版本

请求路径

  • 请求方式:POST
  • 请求头:Content-Type:application/json
  • 接口地址:https://gateway.nuoyunapi.com/Api/User/getWechatUserList/2.0.0
  • 频率限制:10秒1000次

请求参数

参数必选类型描述
pageinteger页码,从1开始
page_sizeinteger每页条数,最大500
last_visit_startinteger最后访问起始时间(包含当前时间)
last_visit_endinteger最后访问结束时间(包含当前时间)
wechat_user_space_idinteger搜索的用户id
time_stinteger用户更新时间 - 开始(时间戳)
time_etinteger用户更新时间 - 结始(时间戳)
last_idinteger分页游标(上一页的最后一条数据id)

请求示例

json
{
    "page": 1,
    "page_size": 20,
    "last_visit_start": 1704067200,
    "last_visit_end": 1706745599,
    "wechat_user_space_id": 0,
    "time_st": 1704067200,     
    "time_et": 1706745599       
}

响应参数

参数必选类型描述
codeinteger状态码:200-成功,400-失败
msgstring提示信息
dataobject消息内容

data 参数结构

参数必选类型描述
totalinteger总记录数
listarray用户列表

list 参数结构

参数必选类型描述
wechat_user_space_idinteger用户ID
shut_upinteger禁言:0-无,1-全部
forbidinteger拉黑:0-无,1-全部
shieldinteger屏蔽:0-无,1-全部
first_visit_timeinteger首次访问时间
last_visit_timeinteger最近访问时间
openidstringopenid
unionidstringunionid
namestring用户昵称
photostring用户头像
last_mobilestring最近采集用户电话号码
third_uuidstring三方系统用户id
user_create_timestring用户创建时间
user_update_timestring用户更新时间
idinteger数据id(可当做下一页的游标)
third_wechat_infoobject第三方微信信息

third_wechat_info 参数结构

参数必选类型描述
authorizer_appidstring第三方公众号appid
openidstring第三方openid
unionidstring第三方unionid

响应示例

json
{
    "code": 200,
    "data": {
        "list": [
            {
                "wechat_user_space_id": 1001234,
                "shut_up": 0,
                "forbid": 0,
                "shield": 0,
                "first_visit_time": 1704067200,
                "last_visit_time": 1706745599,
                "openid": "oKFTf0ZA1JAo8qw65AgYva4A5irM",
                "unionid": "o8-ysv_an9GvERIlh8kYn5SwwsX8",
                "name": "张三",
                "photo": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKxrqXeFicQ55Q/132",
                "last_mobile": "138****1234",
                "third_uuid": "user_001",
                "third_wechat_info": {
                    "authorizer_appid": "wx1234567890abcdef",
                    "openid": "oKFTf0ZA1JAo8qw65AgYva4A5irM",
                    "unionid": "o8-ysv_an9GvERIlh8kYn5SwwsX8"
                },
                "user_create_time": "2024-01-01 10:30:00",
                "user_update_time": "2024-01-31 15:45:30",
                "id": 57513354
            },
            {
                "wechat_user_space_id": 1001235,
                "shut_up": 1,
                "forbid": 0,
                "shield": 0,
                "first_visit_time": 1704153600,
                "last_visit_time": 1706659200,
                "openid": "oKFTf0ZA1JAo8qw65AgYva4A5irN",
                "unionid": "o8-ysv_an9GvERIlh8kYn5SwwsX9",
                "name": "李四",
                "photo": "https://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKxrqXeFicQ55R/132",
                "last_mobile": "139****5678",
                "third_uuid": "user_002",
                "third_wechat_info": {
                    "authorizer_appid": "wx1234567890abcdef",
                    "openid": "oKFTf0ZA1JAo8qw65AgYva4A5irN",
                    "unionid": "o8-ysv_an9GvERIlh8kYn5SwwsX9"
                },
                "user_create_time": "2024-01-02 14:20:15",
                "user_update_time": "2024-01-30 09:15:45",
                "id": 57513355
            }
        ],
        "total": 156
    },
    "msg": "Success"
}