Exemplo n.º 1
0
        echo $ofuz_call_methods->OutputMessage();
    }
}
/*
    API method for adding note
*/
if ($_REQUEST['method'] == "add_note") {
    $api_key = $_REQUEST['key'];
    $format = $_REQUEST['format'];
    if (empty($format)) {
        $format = "xml";
    }
    $ofuz_call_methods = new OfuzApiMethods($format);
    $message_set = true;
    if ($ofuz_call_methods->checkKey($api_key)) {
        if ($ofuz_call_methods->add_note()) {
            $message_set = false;
            echo $ofuz_call_methods->OutputValues();
        } else {
            if ($ofuz_call_methods->OutputMessage() == '') {
                $ofuz_call_methods->setMessage("633", "Error Adding Note");
            }
        }
    }
    if ($message_set) {
        echo $ofuz_call_methods->OutputMessage();
    }
}
/*
    API method for adding task
*/