예제 #1
0
파일: aaa.php 프로젝트: ram-1501/rs
         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';
     }
     break;
 case "bl_user_info":
     if (isset($_POST['accountID']) && isset($_POST['profileID'])) {
         $acc_data = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']);
         if ($acc_data == 'reload') {