本文整理汇总了PHP中message::subscribe方法的典型用法代码示例。如果您正苦于以下问题:PHP message::subscribe方法的具体用法?PHP message::subscribe怎么用?PHP message::subscribe使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类message
的用法示例。
在下文中一共展示了message::subscribe方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: subscribe
public function subscribe()
{
$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->subscribe($this->buildRequest());
}
示例2: subscribe
public function subscribe()
{
/*
|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->subscribe($this->buildRequest());
}