View Source WeChat.User (wechat v0.18.0)

用户管理

Summary

Types

国家地区语言

昵称

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

微信号

微信号列表

Functions

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

获取用户列表 - 官方文档

获取用户列表 - 官方文档

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

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

Types

lang()

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

国家地区语言

  • "zh_CN" - 简体
  • "zh_TW" - 繁体
  • "en" - 英语

nickname()

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

昵称

remark()

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

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

username()

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

微信号

username_list()

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

微信号列表

Functions

batch_get_user_info(client, user_list)

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

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

get_users(client)

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

获取用户列表 - 官方文档

get_users(client, next_openid)

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

获取用户列表 - 官方文档

stream_get_user(client)

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

获取用户列表 - 官方文档

update_remark(client, openid, remark)

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

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

user_info(client, openid)

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

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

user_info(client, openid, lang)

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

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