SaeTClientV2::send_dm_by_id PHP Method

send_dm_by_id() public method

发送一条私信。成功将返回完整的发送消息。
对应API:{@link http://open.weibo.com/wiki/2/direct_messages/new direct_messages/new}
public send_dm_by_id ( integer $uid, string $text, integer $id = NULL ) : array
$uid integer 用户UID
$text string 要发生的消息内容,文本大小必须小于300个汉字。
$id integer 需要发送的微博ID。
return array
    function send_dm_by_id($uid, $text, $id = NULL)
    {
        $params = array();
        $this->id_format($uid);
        $params['text'] = $text;
        $params['uid'] = $uid;
        if ($id) {
            $this->id_format($id);
            $params['id'] = $id;
        }
        return $this->oauth->post('direct_messages/new', $params);
    }
SaeTClientV2