public function createUser(User $user, $password = null, $redirectTo = null, $sendNotificationEmail = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['user' => $user, 'password' => $password, 'redirectTo' => $redirectTo, 'sendNotificationEmail' => $sendNotificationEmail], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users', $parameters);
        $result = new User($result);

        return $result;
    }
public function createUser(User $user, $password = null, $redirectTo = null, $sendNotificationEmail = null)
    {
        $parameters = [
            'query' => [],
            'body' => json_encode(['user' => $user, 'password' => $password, 'redirectTo' => $redirectTo, 'sendNotificationEmail' => $sendNotificationEmail], JSON_UNESCAPED_UNICODE),
            'headers' => [],
        ];

        $result = $this->post('v1/accounts/users', $parameters);
        $result = new User($result);

        return $result;
    }
public function createUser ( User $ user , $ password = null , $ redirectTo = null , $ sendNotificationEmail = null ) { $ parameters = [ 'query' => [ ] , 'body' => json_encode ( [ 'user' => $ user , 'password' => $ password , 'redirectTo' => $ redirectTo , 'sendNotificationEmail' => $ sendNotificationEmail ] , JSON_UNESCAPED_UNICODE ) , 'headers' => [ ] , ] ; $ result = $ this -> post ( 'v1/accounts/users' , $ parameters ) ; $ result = new User ( $ result ) ; return $ result ; }
Create a user Create a user in QBank.

@param  User   $user                  The user to create
@param  string $password              Password for the new user, leave blank to let QBank send a password-reset link to the user
@param  string $redirectTo            Only used if leaving $password blank, a URL to redirect the user to after setting his/hers password
@param  bool   $sendNotificationEmail Send a notification email to the new user, as specified through the QBank backend
@return User
Create a user Create a user in QBank .