notImplemented(); } $all = isset($_GET['all']) ? $_GET['all'] : ''; unreadCount($all); break; case 'edit-tag': //http://blog.martindoms.com/2010/01/20/using-the-google-reader-api-part-3/ $token = isset($_POST['T']) ? trim($_POST['T']) : ''; checkToken($conf, $token); $a = isset($_POST['a']) ? $_POST['a'] : ''; //Add: user/-/state/com.google/read user/-/state/com.google/starred $r = isset($_POST['r']) ? $_POST['r'] : ''; //Remove: user/-/state/com.google/read user/-/state/com.google/starred $e_ids = multiplePosts('i'); //item IDs editTag($e_ids, $a, $r); break; case 'mark-all-as-read': $token = isset($_POST['T']) ? trim($_POST['T']) : ''; checkToken($conf, $token); $streamId = $_POST['s']; //StreamId $ts = isset($_POST['ts']) ? $_POST['ts'] : '0'; //Older than timestamp in nanoseconds if (!ctype_digit($ts)) { $ts = '0'; } markAllAsRead($streamId, $ts); break; case 'token': token($conf);
/** TAGS **/ case "gettag": $tagid = required_param('tagid', PARAM_ALPHANUMEXT); $response = getTag($tagid); break; case "getusertags": $response = getUserTags(); break; case "addtag": $tagname = required_param('tagname', PARAM_TEXT); $response = addTag($tagname); break; case "edittag": $tagid = required_param('tagid', PARAM_ALPHANUMEXT); $tagname = required_param('tagname', PARAM_TEXT); $response = editTag($tagid, $tagname); break; case "deletetag": $tagid = required_param('tagid', PARAM_ALPHANUMEXT); $response = deleteTag($tagid); break; case "gettagsbyfirstcharacters": $query = required_param('q', PARAM_TEXT); $scope = optional_param('scope', 'my', PARAM_ALPHANUMEXT); $response = getTagsByFirstCharacters($query, $scope); break; /** VOTING **/ /** VOTING **/ case "addlemon": $issueid = required_param('issueid', PARAM_ALPHANUMEXT); $nodeid = required_param('nodeid', PARAM_ALPHANUMEXT);