break; case 'editOutreachStream': if (!$api->ifUserLogined()) { echo 'reload'; } if (isset($_POST['accountID']) && isset($_POST['profileID']) && isset($_POST['id']) && isset($_POST['parameters'])) { echo $api->editOutreachStream($_POST['id'], $_POST['accountID'], $_POST['profileID'], $_POST['parameters']); } else { echo 'error'; } break; case 'getUserEvents': if (!$api->ifUserLogined()) { echo 'reload'; } echo $api->getUserEvents($_POST['startTime'], $_POST['endTime'], $_POST['request_action'], $_POST['maxEvents'], $_POST['profileIds'], $_POST['tags'], $_POST['types'], $_POST['only_completed'], $_POST['ecRead'], $_POST['searchText']); break; case 'setUserEvents': if (!$api->ifUserLogined()) { echo 'reload'; } echo $api->setUserEvents($_POST['events'], $_POST['tags'], $_POST['markAll']); break; case 'getBloggerPosts': if (!$api->ifUserLogined()) { echo 'reload'; } if (isset($_POST['accountID']) && isset($_POST['profileID'])) { echo $api->getBloggerPosts($_POST['accountID'], $_POST['profileID'], "bl_all", $_POST['next']); } else { echo 'error';