mirror of
https://gitee.com/zoujingli/WeChatDeveloper.git
synced 2025-04-06 03:58:03 +08:00
[更新]增加微信粉丝标签更新接口
This commit is contained in:
parent
b9773f1b0c
commit
3414f6e621
@ -49,6 +49,21 @@ class Tags extends BasicWeChat
|
|||||||
return $this->httpPostForJson($url, ['tag' => ['name' => $name]]);
|
return $this->httpPostForJson($url, ['tag' => ['name' => $name]]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新粉丝标签
|
||||||
|
* @param integer $id 标签ID
|
||||||
|
* @param string $name 标签名称
|
||||||
|
* @return array
|
||||||
|
* @throws Exceptions\InvalidResponseException
|
||||||
|
* @throws Exceptions\LocalCacheException
|
||||||
|
*/
|
||||||
|
public function updateTags($id, $name)
|
||||||
|
{
|
||||||
|
$url = "https://api.weixin.qq.com/cgi-bin/tags/update?access_token=ACCESS_TOKEN";
|
||||||
|
$this->registerApi($url, __FUNCTION__, func_get_args());
|
||||||
|
return $this->httpPostForJson($url, ['tag' => ['name' => $name, 'id' => $id]]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 删除粉丝标签
|
* 删除粉丝标签
|
||||||
* @param int $tagId
|
* @param int $tagId
|
||||||
|
Loading…
x
Reference in New Issue
Block a user