case 'getTWHomeFeed': // $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->getTWHomeFeedFromServer($acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts, $acc_data->sampleId); } break; case 'getTWMentions': // $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->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':