com.github.sd4324530.fastweixin.api
类 TagAPI

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.api.BaseAPI
      继承者 com.github.sd4324530.fastweixin.api.TagAPI

public class TagAPI
extends BaseAPI

标签相关API

从以下版本开始:
1.3.9
作者:
peiyu

字段摘要
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的字段
BASE_API_URL, config
 
构造方法摘要
TagAPI(ApiConfig config)
          构造方法,设置apiConfig
 
方法摘要
 CreateTagResponse create(String tagName)
          创建标签
 ResultType deleteTag(Integer tagId)
          删除标签
 GetAllTagsResponse getAllTags()
          获取已经创建的标签
 GetUsersResponse getUsersByTagId(Integer tagId, String nextOpenid)
          获取标签下粉丝
 ResultType updateTag(Integer tagId, String newTagName)
          编辑标签
 
从类 com.github.sd4324530.fastweixin.api.BaseAPI 继承的方法
executeGet, executePost, executePost, isSuccess
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

TagAPI

public TagAPI(ApiConfig config)
构造方法,设置apiConfig

参数:
config - 微信API配置对象
方法详细信息

create

public CreateTagResponse create(String tagName)
创建标签

参数:
tagName - 标签名称
返回:
创建的标签结果

getAllTags

public GetAllTagsResponse getAllTags()
获取已经创建的标签

返回:
已经创建的标签列表

updateTag

public ResultType updateTag(Integer tagId,
                            String newTagName)
编辑标签

参数:
tagId - 标签ID
newTagName - 新的标签名称
返回:
编辑结果

deleteTag

public ResultType deleteTag(Integer tagId)
删除标签

参数:
tagId - 需要删除的标签ID
返回:
删除结果

getUsersByTagId

public GetUsersResponse getUsersByTagId(Integer tagId,
                                        String nextOpenid)
获取标签下粉丝

参数:
tagId - 标签ID
nextOpenid - 下一个用户的openid,第一次不用填
返回:
本批用户列表


Copyright © 2017. All rights reserved.