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 { echo "Incorrect data"; } break; case 'updateGPPost': if (isset($_POST['accountID']) && isset($_POST['profileID']) && isset($_POST['id']) && isset($_POST['content'])) { echo $api->updateSocialStreamPost($_POST['accountID'], $_POST['profileID'], $_POST['id'], $_POST['content'], "googleplus", $_POST['link']); } else { echo "Incorrect data"; } break; case 'addGooglePlusComment': if (isset($_POST["post_id"]) && isset($_POST['accountID']) && isset($_POST["profileID"])) { echo $re = $api->publishSocialStreamObject("addGooglePlusComment", $_POST['post_id'], $_POST["comment"], "comment"); }