echo $response; } catch (Exception $e) { echo "server error"; } break; case "internalMarketingSendEmail": try { $response = $api->internalMarketingSendEmail($_SESSION['user_name'], $_SESSION['user_pass'], $_POST['adminSendAllUsersSubject'], $_POST['adminSendAllUsersText'], $_POST['sendToGroup'], $_POST['emailSpecificUsersList'], $_POST['onlyNonVerified'], $_POST['onlyNonLoggedIn'], $_POST['daysOnlyNonLoggedIn'], $_POST['onlyEmailSuffix'], $_POST['emailSuffix'], $_POST['sendToAll'], $_POST['onlyNoAccounts'], $_POST['onlyNonAccountGA'], $_POST['onlyNonAccountFB'], $_POST['onlyNonAccountLN'], $_POST['onlyNonAccountTW'], $_POST['onlyNonAccountWP'], $_POST['onlyNonAccountIG'], $_POST['onlyNonAccountYT'], $_POST['onlyPlanTypeFree'], $_POST['onlyPlanTypeBasic'], $_POST['onlyPlanTypePremier'], $_POST['onlyNonLifetimePost'], $_POST['onlyNonPost'], $_POST['daysOnlyNonPost']); echo $response; } catch (Exception $e) { echo "server error"; } break; case "internalMarketingRefreshStatus": try { $response = $api->internalMarketingRefreshStatus($_SESSION['user_name'], $_SESSION['user_pass']); echo $response; } catch (Exception $e) { echo "server error"; } break; case "getInFeed": // if (isset ( $_POST ['i'] ) && isset ( $_POST ['j'] ) && isset ( $_POST ['next'] )) { if (isset($_POST['accountID']) && isset($_POST['profileID']) && isset($_POST['next'])) { // $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->getNewsFeedMostRecentServer($acc_data->accountId, $acc_data->sampleId, $_POST['stream'], $_POST['next'], ""); }