<section class="main-container"> <section class="main wrapper clearfix"> <article class="main-content"> <h1>Thank you!</h1> <?php } // development debugging if ($debugging == 'heavy') { var_dump($_POST); echo "\n\n"; } // require API libraries require_once 'utils.php'; require_once 'nusoap.php'; // instantiate nusoap_client and call login method $nsc = startEtapestrySession($api_version, $debugging); // define info $account = array(); if ($api_version == 2) { $account["name"] = $_POST['firstName'] . ' ' . $_POST['lastName']; $account["firstName"] = $_POST['firstName']; $account["lastName"] = $_POST['lastName']; } elseif ($api_version == 3) { $account["nameFormat"] = 1; $account["firstName"] = $_POST['firstName']; $account["lastName"] = $_POST['lastName']; } $account["personaType"] = "Personal"; $account["address"] = $_POST['address']; $account["address2"] = $_POST['address2']; $account["city"] = $_POST['city'];
<?php // Click here to download the following php files used within this sample code. require "lib/utils.php"; require "lib/nusoap.php"; // Instantiate nusoap_client and call login method $nsc = startEtapestrySession(); // Initialize parameters $dv = array(); $dv["fieldName"] = "INPUT_FIELD_NAME"; $dv["value"] = "INPUT_VALUE"; // Invoke getAccountByUniqueDefinedValue method echo "Calling getAccountByUniqueDefinedValue method..."; $response = $nsc->call("getAccountByUniqueDefinedValue", array($dv)); echo "Done<br><br>"; // Did a soap fault occur? checkStatus($nsc); // Output result echo "Response: <pre>"; print_r($response); echo "</pre>"; // Call logout method stopEtapestrySession($nsc);