Ejemplo n.º 1
0
Archivo: aaa.php Proyecto: ram-1501/rs
 case 'getTWFavorites':
     // $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->getTWFavoritesFromServer($acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts);
     }
     break;
 case 'getTWFollowers':
     // $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->getTWFollowersFromServer($acc_data->userId, $acc_data->accountId, $acc_data->user_at, $acc_data->user_ts);
     }
     break;
     // added by KH 05/15/2013 to address retweets of third-party twitter posts:
 // added by KH 05/15/2013 to address retweets of third-party twitter posts:
 case 'getOtherRetweets':
     // $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)
         // {
         $result = $api->getOtherRetweetsServer($_POST["postId"], $_POST['accountID'], $_POST['profileID']);
         echo json_encode($result->data);
         // }