Hey Dan. My plan is to try to log a user on with their email as the key. If that fails (like it will if they have not registered).
$request = array(); $request["applicationId"] = $_SESSION['applicationID_admin_register_login']; $request["user"]["data"]["admin_email"] = $email; $request["user"]["data"]["email"] = $request["user"]["email"] = $email; $requestJ = json_encode($request); //convert the array into json $result = $_SESSION['client']->updateUser($id, $requestJ); //if $result is that user was not found then ask if they want to register? if (!$result->wasSuccessful()) { log_message('error', $result); }Now, I don't want to updateUser() since I am not even sure if the user exists. What function should I use to easily see if they are already registered?