WeChat.User (wechat v0.2.0)

用户管理

Link to this section Summary

Types

国家地区语言

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

微信号

Functions

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

获取用户列表 - 官方文档

获取用户列表 - 官方文档

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

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

Link to this section Types

Specs

lang() :: String.t()

国家地区语言

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

Specs

remark() :: String.t()

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

Specs

username() :: String.t()

微信号

Link to this section Functions

Link to this function

batch_get_user_info(client, user_list)

Specs

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

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

Link to this function

get_users(client)

Specs

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

获取用户列表 - 官方文档

Link to this function

get_users(client, next_openid)

Specs

获取用户列表 - 官方文档

Link to this function

stream_get_user(client)

Specs

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

获取用户列表 - 官方文档

Link to this function

update_remark(client, openid, remark)

Specs

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

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

Link to this function

user_info(client, openid)

Specs

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

Link to this function

user_info(client, openid, lang)

Specs

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