### fansTagAdd() - 创建粉丝标签
### 说明
```
fansTagAdd($tagname)
```
### 参数
- **$tagname** ‘标签名’
### 返回值
#### error
error()结构的错误;
#### success
```
$return = array(
'tag' => array(
'id' => '134',//标签id
'name' => '广东',//标签名
)
);
```
### 示例
```
$account_api = WeAccount::create();
$result = $account_api->fansTagAdd('广东');
```
### fansTagFetchAll() - 获取粉丝标签列表
### 返回值
#### error
error()结构的错误;
#### success
```
$return = array(
'tags' => array(
0 => array(
'id' => 1,
'name' => '山西群'//标签名,
'count' => '20'//粉丝人数),
1 => array(
'id' => 2,
'name' => '微擎2',
'count' => '标签下的粉丝数'),
....
)
)
```
### 示例
```
$account_api = WeAccount::create();
$result = $account_api->fansTagFetchAll();
```
### fansTagEdit() - 编辑粉丝标签
### 说明
```
fansTagEdit($tagid, $tagname)
```
### 参数
- $tagid //标签id
- $tagname //修改后的标签名称
### 返回值
#### error
error()结构的错误;
#### success
```
array(
'errcode' => 0,
'errmsg' => 'ok'
)
```
### 示例
```
$account_api = WeAccount::create();
$result = $account_api->fansTagEdit('151', '广东');
```
### fansTagDelete() - 删除粉丝标签
### 说明
```
fansTagDelete($tagid)
```
### 参数
- $tagid //标签id
### 返回值
#### error
error()结构的错误;
#### success
```
array(
'errcode' => 0,
'errmsg' => 'ok'
)
```
### 示例
```
$account_api = WeAccount::create();
$res
ult = $account_api->fansTagDelete('151');
```
### fansTagGetUserlist() - 获取标签下的粉丝列表
### 说明
```
fansTagGetUserlist($tagid, $next_openid = '')
```
### 参数
- $tagid //标签id
- $next_openid //从此openid开始获取粉丝列表
### 返回值
#### error
error()结构的错误;
#### success
```
array(
'count' => 2//粉丝总数
'data' => array(
'openid' => array(
0 => 'ocYxcuAEy30bX0NXmGn4ypqx3tI0',//粉丝openid
1 => 'ocYxcuAEy30bX0NXmGn4ypqx3sdf',
...
)
)
)
```
### 示例
```
$account_api = WeAccount::create();
$result = $account_api->fansTagGetUserlist('151','ocYxcuAEy30bX0NXmGn4ypqx3tI0');
```
### fansTagTagging() - 单个粉丝打标签
### 说明
```
fansTagTagging($openid, $tagids)
```
### 参数
- $openid //粉丝opnid
- $tagids //粉丝标签数组 array(0 => tagid1,1 => tagid2,2 => tagid3)
### 返回值
#### error
error()结构的错误;
#### success
```
error 结构
array('errno' => 0, 'message' => "单个粉丝打标签成功");
```
### 示例
```
$account_api = WeAccount::create();
$result = $account_api->fansTagTagging('ocYxcuAEy30bX0NXmGn4ypqx3tI0', array(151, 152));
```
### fansTagBatchTagging() - 批量为用户打标签
### 说明
```
fansTagBatchTagging($openid_list, $tagid)
```
### 参数
- $openid_list //粉丝opnid数组array('ocYxcuAEy30bX0NXmGn4ypqx3tI0', 'ocYxcuAEy30bX0NXmGn4ypqx3sdf')
- $tagid //粉丝标签id
### 返回值
#### error
error()结构的错误;
#### success
```
array('errcode' => 0, 'errmsg' => "ok");
```
### 示例
```
$account_api = WeAccount::create();
$result = $account_api->fansTagBatchTagging(array('ocYxcuAEy30bX0NXmGn4ypqx3tI0', 'ocYxcuAEy30bX0NXmGn4ypqx3tI0'), 151);
```
### fansTagBatchUntagging() - 批量为粉丝取消标签
### 说明
```
fansTagBatchUntagging($openid_list, $tagid)
```
### 参数
- $openid_list //粉丝opnid数组array('ocYxcuAEy30bX0NXmGn4ypqx3tI0', 'ocYxcuAEy30bX0NXmGn4ypqx3sdf')
- $tagid //粉丝标签id
### 返回值
#### error
error()结构的错误;
#### success
```
array('errcode' => 0, 'errmsg' => "ok");
```
### 示例
```
$account_api = WeAccount::create();
$result = $account_api->fansTagBatchUntagging(array('ocYxcuAEy30bX0NXmGn4ypqx3tI0', 'ocYxcuAEy30bX0NXmGn4ypqx3tI0'), 151);
```
### fansTagFetchOwnTags() - 获取粉丝身上的标签列表
### 说明
```
fansTagFetchOwnTags($openid)
```
### 参数
- $openid //粉丝opnid
### 返回值
#### error
error()结构的错误;
#### success
```
array(
'tagid_list' = array(
0 => 1,
1 => 2,
...
)
```
### 示例
```
$account_api = WeAccount::create();
$result = $account_api->fansTagFetchOwnTags('ocYxcuAEy30bX0NXmGn4ypqx3tI0');
```