public function send(array $data = array())
    {
        if (!$this->login || !$this->password) {
            throw new Exception('No login/password specified');
        }
        if (!$data['TITLE']) {
            throw new Exception('No title provided');
        }
        $curl = new CURL();

        $POST = array_merge(
            array('LOGIN' => $this->login, 'PASSWORD' => $this->password, 'SOURCE_ID' => self::SOURCE_ID),
            $data
        );

        $result = $curl->getURL($this->url, $POST);
        $result = $this->fixJSON($result);
        $result = json_decode($result);
        if (!$result) {
            throw new Exception('No response retrieved');
        } elseif ($result->error && ((int)$result->error != self::ERR_OK)) {
            throw new Exception($result->error_message, (int)$result->error);
        }
        return $result;
    }