Пример #1
0
     if ($acc_data == 'reload') {
         echo "Reload page";
     } else {
         echo $api->getTWMentionsFromServer($acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts, $acc_data->sampleId);
     }
     break;
     //  send direct messages (inbox/outbox)
 //  send direct messages (inbox/outbox)
 case 'getTWInBox':
     // $acc_data = $api->getAccountData ( $_POST ['i'], $_POST ['j'] );
     $acc_data = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']);
     if ($acc_data == 'reload') {
         echo "Reload page";
     } else {
         //echo $api->getTWDirectMessagesInBoxFromServer( $acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts );
         echo $api->getTWDirectMessagesInBoxFromServerNew($acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts);
     }
     break;
 case 'getTWUserProfile':
     //$acc_data = $api->getAccountData ( $_POST ['i'], $_POST ['j'] );
     $acc_data = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']);
     if ($acc_data == 'reload') {
         echo "Reload page";
     } else {
         // if (Server_Side) {
         if (!isset($_POST['user_id'])) {
             $result = $api->getTWUserProfileServer($acc_data->userId, $acc_data->accountId, $acc_data->sampleId);
             //$result->addChild('i', $_POST ['i']);
             //$result->addChild('j', $_POST ['j']);
             $result->addChild('type', "tw");
         } else {