<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<title>Test Users Create</title>
</head>

<body>
<?php 
require_once 'test-util.php';
require_once dirname(__FILE__) . '/../lib/ca-main.php';
echo '<div class="apitest">';
echo '<h1>users_create</h1>';
$ca = new CityApi();
$ca->debug = true;
$ca->json = true;
echo "<h2>Test with no parameters - fail</h2>{$results}";
$results = $ca->users_create();
// fail test, no parameters
echo "<h2>results:</h2>{$results}";
$results = $ca->users_create(array('first' => 'Chew', 'last' => 'Bacca', 'primary_phone' => '(301) 555-1212', 'primary_phone_type' => 'Mobile'));
echo "<h2>results:</h2>{$results}";
echo '<h2>var_dump results:</h2>';
var_dump($results);
echo '<h2>Formatted JSON results: </h2>';
echo '<pre>';
echo format_json($results);
echo '</pre>';
echo '</div>';
?>
</body>
</html>