public function update($name, $email, $mention_name, $timezone = 'UTC', $is_group_admin = false, $title = '', $password = null)
    {
        $queryParams = array(
            'name' => $name,
            'title' => $title,
            'mention_name' => $mention_name,
            'is_group_admin' => $is_group_admin,
            'timezone' => $timezone,
            'email' => $email,
        );
        if ($password != null) {
            $queryParams['password'] = $password;
        }
        $user_id = $this->getId();

        $response = $this->request->put('user/'.$user_id.'', $queryParams);

        return $this->request->returnResponseObject($response);
    }
public function update($name, $email, $mention_name, $timezone = 'UTC', $is_group_admin = false, $title = '', $password = null)
    {
        $queryParams = array(
            'name' => $name,
            'title' => $title,
            'mention_name' => $mention_name,
            'is_group_admin' => $is_group_admin,
            'timezone' => $timezone,
            'email' => $email,
        );
        if ($password != null) {
            $queryParams['password'] = $password;
        }
        $user_id = $this->getId();

        $response = $this->request->put('user/'.$user_id.'', $queryParams);

        return $this->request->returnResponseObject($response);
    }
public function update ( $ name , $ email , $ mention_name , $ timezone = 'UTC' , $ is_group_admin = false , $ title = '' , $ password = null ) { $ queryParams = array ( 'name' => $ name , 'title' => $ title , 'mention_name' => $ mention_name , 'is_group_admin' => $ is_group_admin , 'timezone' => $ timezone , 'email' => $ email , ) ; if ( $ password != null ) { $ queryParams [ 'password' ] = $ password ; } $ user_id = $ this -> getId ( ) ; $ response = $ this -> request -> put ( 'user/' . $ user_id . '' , $ queryParams ) ; return $ this -> request -> returnResponseObject ( $ response ) ; }
Update user
All values are required except password one which is optional!

@param string $name
@param string $email
@param string $mention_name
@param string $timezone
@param bool   $is_group_admin
@param string $title
@param null   $password
@return
Update user All values are required except password one which is optional!