<form> username: <input type="text" name="username" value="<?php if (isset($_REQUEST['username'])) { echo htmlspecialchars($_REQUEST['username']); } ?> "><br/> passwordHash: <input type="text" name="passwordHash" value="<?php if (isset($_REQUEST['passwordHash'])) { echo htmlspecialchars($_REQUEST['passwordHash']); } ?> "><br/> <input type="submit"> <input type="hidden" name="go"> </form> <?php include '../infusionsoft.php'; include 'testUtils.php'; if (isset($_REQUEST['go'])) { $out = Infusionsoft_DataService::authenticateUser($_REQUEST['username'], $_REQUEST['passwordHash']); var_dump($out); }