$result = $connection->get ( 'users/show', array ( 'user_id' => $_POST ['user_id'] ) ); }*/ // } echo json_encode($result); } break; case 'getSingleTweet': //$acc_data = $api->getAccountData ( $_POST ['i'], $_POST ['j'] ); // $acc_data = $api->getAccountDataByID( $_POST['accountID'], $_POST['profileID'] ); // if ($acc_data == 'reload') { // echo "Reload page"; // } else { // $result = $api->getSingleTweet ( $acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts ); $result = $api->getSingleTweet($_POST['tweet_id'], $_POST['accountID']); echo json_encode($result); // } break; // TODO ?? WHERE USED? // TODO ?? WHERE USED? case 'getTWOutBox': $acc_data = $api->getAccountData($_POST['i'], $_POST['j']); if ($acc_data == 'reload') { echo "Reload page"; } else { $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, (string) $acc_data->user_at, (string) $acc_data->user_ts); $array = array('include_entities' => 'true'); if (isset($_POST['max_id'])) { $array['max_id'] = $_POST['max_id']; }