if ($DatastoreUser) {
    // Istantiate ConstantContact Object and push in credentails for
    // authentication that would be retrieved form config.php
    $ConstantContact = new ConstantContact('oauth', $apiKey, $username, $consumerSecret);
    // Get all lists from account
    $Lists = $ConstantContact->getLists();
    // Get all verified email addresses
    $VerifiedEmailAddresses = $ConstantContact->getVerifiedAddresses();
    // parse states and countries
    $allStates = $ConstantContact->getStates();
    $allCountries = $ConstantContact->getCountries();
    // Check to see if this is a campaign that we are editing or if this is
    // adding a campaign
    if (!empty($_GET["campaignID"]) && empty($_GET["status"])) {
        // Return the campaign details by ID
        $CampaignResult = $ConstantContact->getCampaignByID($_GET["campaignID"]);
    }
    // If user is adding a new campaign, campaignName would be set to the POST
    if (isset($_POST["campaignName"])) {
        try {
            // Build Campaign Object
            $myCampaign = new Campaign();
            $myCampaign->name = $_POST["campaignName"];
            $myCampaign->subject = $_POST["subjectLine"];
            $myCampaign->fromName = $_POST["fromName"];
            if (isset($_POST["fromEmailAddress"])) {
                // Do while is necessary to grab the next 50 results and build
                // the next request so it keeps iterating until completion
                do {
                    // Gets the next link if there are more than 50 results to
                    // be returned