예제 #1
0
파일: aaa.php 프로젝트: ram-1501/rs
             echo $api->getBloggerPosts($_POST['accountID'], $_POST['profileID'], "bl_user_info", $_POST['user_id']);
         }
     } else {
         echo "Incorrect data";
     }
     break;
 case 'deleteGPPost':
     if (isset($_POST['accountID']) && isset($_POST['profileID']) && isset($_POST['post_id'])) {
         echo $api->deleteSocialStreamPost($_POST['accountID'], $_POST['profileID'], $_POST['post_id'], "googleplus");
     } else {
         echo "Incorrect data";
     }
     break;
 case 'getGPComments':
     if (isset($_POST['accountID']) && isset($_POST['profileID']) && isset($_POST['post_id'])) {
         echo $api->getSocialStreamPostComments($_POST['accountID'], $_POST['profileID'], $_POST['post_id']);
     } else {
         echo "Incorrect data";
     }
     break;
 case 'deleteGPComment':
     if (isset($_POST['accountID']) && isset($_POST['profileID']) && isset($_POST['comment_id'])) {
         echo $api->deleteSocialStreamComment($_POST['accountID'], $_POST['profileID'], $_POST['comment_id'], "googleplus");
     } else {
         echo "Incorrect data";
     }
     break;
 case 'updateGPComment':
     if (isset($_POST['accountID']) && isset($_POST['profileID']) && isset($_POST['comment_id']) && isset($_POST['content'])) {
         echo $api->updateSocialStreamComment($_POST['accountID'], $_POST['profileID'], $_POST['comment_id'], $_POST['content'], "googleplus");
     } else {