[[PageOutline(3-4, Sections)]] == !AddComment == === Intro === add comment to a subtitle ---- === Description === '''struct !AddComment(string $token, struct('idsubtitle' => int $idsubtitle, 'comment' => string $comment, 'badsubtitle' => int $badsubtitle) $data)''' Allows registered users to add a new comment to subtitle. ---- === Parameters === {{{ struct( (string) [token], struct( (int) [idsubtitle], (string) [comment], (int) [badsubtitle] ) [data] ) }}} ''token (required)'':: token string identifying user's session, taken from [wiki:XmlRpcLogIn LogIn] output structure. ''data (required)'':: comment input data structure containing: * ''idsubtitle (required)'': * subtitle identifier * BEWARE! this is not the ID of subtitle file but of the whole subtitle (a subtitle can contain multiple subtitle files) * ''comment (required)'': user's comment * ''badsubtitle'': optional parameter. If set to 1, subtitles are marked as bad. ---- === Return Values === Output is returned in this structure: {{{ struct( (string) [status], (double) [seconds] ) }}} and contains these elements: ''status'':: function result code, see [wiki:XmlRpcStatusCode list of status codes] ''seconds'':: time taken to execute this command on server ---- === Implementations === There are currently no available sample implementations. ---- === Changelog === * [2008-10-13] Version 1: created this function ---- === Examples === ==== Input ==== {{{ #!xml AddComment u77pcgogdg5ttkcn9bgtvmf964 idsubtitle 3322956 comment thanks for the subtitles, I really appreciate it. Good work, keep them comin'. badsubtitle 0 }}} ==== Output ==== {{{ #!xml status 200 OK seconds 0.955 }}} ---- === Notes === none yet ---- === See also === * [wiki:XmlRpcSubtitlesVote SubtitlesVote()] ---- === Comments === add your comments, hints and suggestions here if you like ... -------- [Prev] [wiki:XmlRpcIntro Home] [Next]