Documentation ¶
Index ¶
- type Client
- func (comp *Client) Create(ctx context.Context, name string) (*response.ResponseTagGet, error)
- func (comp *Client) Delete(ctx context.Context, tagID string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) List(ctx context.Context) (*response.ResponseTagGetList, error)
- func (comp *Client) TagUsers(ctx context.Context, openIDs []string, tagID string) (*response.ResponseTagUsers, error)
- func (comp *Client) UntagUsers(ctx context.Context, openIDs []string, tagID string) (*response.ResponseUntagUsers, error)
- func (comp *Client) Update(ctx context.Context, tagID string, name string) (*response2.ResponseOfficialAccount, error)
- func (comp *Client) UserTags(ctx context.Context, openID string) (*response.ResponseUserTags, error)
- func (comp *Client) UsersOfTag(ctx context.Context, tagID string, nextOpenID string) (*response.ResponseUserOfTag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseClient *kernel.BaseClient
}
func (*Client) Create ¶
创建标签 https://developers.weixin.qq.com/doc/offiaccount/User_Management/User_Tag_Management.html
func (*Client) Delete ¶
func (comp *Client) Delete(ctx context.Context, tagID string) (*response2.ResponseOfficialAccount, error)
删除标签 https://developers.weixin.qq.com/doc/offiaccount/User_Management/User_Tag_Management.html
func (*Client) List ¶
获取公众号已创建的标签 https://developers.weixin.qq.com/doc/offiaccount/User_Management/User_Tag_Management.html
func (*Client) TagUsers ¶
func (comp *Client) TagUsers(ctx context.Context, openIDs []string, tagID string) (*response.ResponseTagUsers, error)
批量为用户打标签 https://developers.weixin.qq.com/doc/offiaccount/User_Management/User_Tag_Management.html
func (*Client) UntagUsers ¶
func (comp *Client) UntagUsers(ctx context.Context, openIDs []string, tagID string) (*response.ResponseUntagUsers, error)
批量为用户取消标签 https://developers.weixin.qq.com/doc/offiaccount/User_Management/User_Tag_Management.html
func (*Client) Update ¶
func (comp *Client) Update(ctx context.Context, tagID string, name string) (*response2.ResponseOfficialAccount, error)
用户标签管理 https://developers.weixin.qq.com/doc/offiaccount/User_Management/User_Tag_Management.html
func (*Client) UserTags ¶
func (comp *Client) UserTags(ctx context.Context, openID string) (*response.ResponseUserTags, error)
获取用户身上的标签列表 https://developers.weixin.qq.com/doc/offiaccount/User_Management/User_Tag_Management.html
func (*Client) UsersOfTag ¶
func (comp *Client) UsersOfTag(ctx context.Context, tagID string, nextOpenID string) (*response.ResponseUserOfTag, error)
获取标签下粉丝列表 https://developers.weixin.qq.com/doc/offiaccount/User_Management/User_Tag_Management.html