本文整理汇总了PHP中message::unsubscribe方法的典型用法代码示例。如果您正苦于以下问题:PHP message::unsubscribe方法的具体用法?PHP message::unsubscribe怎么用?PHP message::unsubscribe使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类message
的用法示例。
在下文中一共展示了message::unsubscribe方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unsubscribe
public function unsubscribe()
{
$message_configs['appid'] = $this->appid;
$message_configs['appkey'] = $this->appkey;
if ($this->sign_type != '') {
$message_configs['sign_type'] = $this->sign_type;
}
$addressbook = new message($message_configs);
return $addressbook->unsubscribe($this->buildRequest());
}
示例2: unsubscribe
public function unsubscribe()
{
/*
|set appid and appkey
|--------------------------------------------------------------------------
*/
$message_configs['appid'] = $this->appid;
$message_configs['appkey'] = $this->appkey;
/*
|set sign_type,if is set
|--------------------------------------------------------------------------
*/
if ($this->sign_type != '') {
$message_configs['sign_type'] = $this->sign_type;
}
/*
|init mail class
|--------------------------------------------------------------------------
*/
$addressbook = new message($message_configs);
/*
|build request and send email and return the result
|--------------------------------------------------------------------------
*/
return $addressbook->unsubscribe($this->buildRequest());
}