public function pushNote($title, $body)
    {
        self::checkPushable();

        $data = [];
        $data[$this->recipientType] = $this->recipient;
        $data['type'] = 'note';
        $data['title'] = $title;
        $data['body'] = $body;

        return new Push(
            Connection::sendCurlRequest(Connection::URL_PUSHES, "POST", $data, true, $this->apiKey),
            $this->apiKey
        );
    }
public function pushNote($title, $body)
    {
        self::checkPushable();

        $data = [];
        $data[$this->recipientType] = $this->recipient;
        $data['type'] = 'note';
        $data['title'] = $title;
        $data['body'] = $body;

        return new Push(
            Connection::sendCurlRequest(Connection::URL_PUSHES, "POST", $data, true, $this->apiKey),
            $this->apiKey
        );
    }
public function pushNote ( $ title , $ body ) { self :: checkPushable ( ) ; $ data = [ ] ; $ data [ $ this -> recipientType ] = $ this -> recipient ; $ data [ 'type' ] = 'note' ; $ data [ 'title' ] = $ title ; $ data [ 'body' ] = $ body ; return new Push ( Connection :: sendCurlRequest ( Connection :: URL_PUSHES , "POST" , $ data , true , $ this -> apiKey ) , $ this -> apiKey ) ; }
Push a note.

@param string $title The note's title.
@param string $body  The note's body.

@return Push Push notification.
@throws Exceptions\ConnectionException
@throws Exceptions\NotPushableException
Push a note .