fansSendAll() - 根據粉絲標簽進行群發
### 說明
```
fansSendAll($group, $msgtype, $media_id)
```
### 參數
- **$group** string 粉絲組的ID
- **$msgtype** string 群發的消息類型,文本消息為text,圖片為image,圖文消息為news,語音為voice,視頻為video,卡券為wxcard
- **$media_id** string 用于群發的消息的media_id
### 返回值
#### error
可用is_error判斷,詳見《錯誤處理》
#### success
```
Array
(
[errcode] => 0 //錯誤碼
[errmsg] => send job submission success //錯誤信息
[msg_id] => 3147483704 //消息發送任務的ID
[msg_data_id] => 2247484106 //消息的數據ID,該字段只有在群發圖文消息時,才會出現。可以用于在圖文分析數據接口中,獲取到對應的圖文消息的數據,是圖文分析數據接口中的msgid字段中的前半部分,詳見圖文分析數據接口中的msgid字段的介紹。
)
```
### 示例
#### 粉絲標簽進行群發
```
$account_api = WeAccount::create();
$result = $account_api->fansSendAll(107, 'news', 'oR5OU2VN0aCr9Kkg4lalknSksv2wk9imkyUet3F6NHU');
```
fansSendPreview() - 群發預覽接口
### 說明
```
fansSendPreview($wxname, $content, $msgtype)
```
### 參數
- **$wxname** string 接收消息用戶對應該公眾號的openid
- **$content** string 發送文本消息時文本的內容或者群發的消息的media_id
- **$msgtype** string 群發的消息類型,文本消息為text,圖片為image,圖文消息為news,語音為voice,視頻為video,卡券為wxcard
### 返回值
#### error
可用is_error判斷,詳見《錯誤處理》
#### success
```
Array
(
[errcode] => 0 //錯誤碼
[errmsg] => preview success //錯誤信息
)
```
### 示例
#### 群發預覽
```
$account_api = WeAccount::create();
$result = $account_api->fansSendPreview('mana12345678900', 'oR5OU2VN0aCr9Kkg4lalknSksv2wk9imkyUet3F6NHU', 'news');
```