View Source WeChat.User (wechat v0.15.1)

用户管理

Summary

Types

国家地区语言

昵称

公众号运营者对粉丝的备注,公众号运营者可在微信公众平台用户管理界面对粉丝添加备注

微信号

微信号列表

Functions

批量获取用户基本信息 - 官方文档

获取用户列表 - 官方文档

获取用户列表 - 官方文档

获取用户基本信息(UnionID机制) - 官方文档

获取用户基本信息(UnionID机制) - 官方文档

Types

@type lang() :: String.t()

国家地区语言

  • "zh_CN" - 简体
  • "zh_TW" - 繁体
  • "en" - 英语
@type nickname() :: String.t()

昵称

@type remark() :: String.t()

公众号运营者对粉丝的备注,公众号运营者可在微信公众平台用户管理界面对粉丝添加备注

@type username() :: String.t()

微信号

@type username_list() :: [username()]

微信号列表

Functions

Link to this function

batch_get_user_info(client, user_list)

View Source
@spec batch_get_user_info(
  WeChat.client(),
  [%{:openid => WeChat.openid(), optional(:lang) => lang()}]
) :: WeChat.response()

批量获取用户基本信息 - 官方文档

@spec get_users(WeChat.client()) :: WeChat.response()

获取用户列表 - 官方文档

Link to this function

get_users(client, next_openid)

View Source
@spec get_users(WeChat.client(), WeChat.openid()) :: WeChat.response()

获取用户列表 - 官方文档

@spec stream_get_user(WeChat.client()) :: Enumerable.t()

获取用户列表 - 官方文档

Link to this function

update_remark(client, openid, remark)

View Source
@spec update_remark(WeChat.client(), WeChat.openid(), remark()) :: WeChat.response()

设置用户备注名 - 官方文档

Link to this function

user_info(client, openid)

View Source
@spec user_info(WeChat.client(), WeChat.openid()) :: WeChat.response()

获取用户基本信息(UnionID机制) - 官方文档

Link to this function

user_info(client, openid, lang)

View Source
@spec user_info(WeChat.client(), WeChat.openid(), lang()) :: WeChat.response()

获取用户基本信息(UnionID机制) - 官方文档