case 'getTWSendTweets': // $acc_data = $api->getAccountData ( $_POST ['i'], $_POST ['j'] ); $acc_data = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']); if ($acc_data == 'reload') { echo "Reload page"; } else { $response = $api->getTWSendTweetsFromServer($acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts); echo $response; } break; case 'getTWLists': $acc_data = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']); if ($acc_data == 'reload') { echo "Reload page"; } else { echo $api->getTWListsFromServer($acc_data->userId, $acc_data->accountId, $acc_data->sampleId, $acc_data->user_at, $acc_data->user_ts); } break; case 'getTWListFeed': $acc_data = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']); if ($acc_data == 'reload') { echo "Reload page"; } else { echo $api->getTWListFeedFromServer($acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts, $_POST['listId']); } break; case 'getTWSearch': $acc_data = $api->getAccountDataByID($_POST['accountID'], $_POST['profileID']); if ($acc_data == 'reload') { echo "Reload page"; } else {