// GetCategoryWithAllChildren gets genre with all lower hierarchy genre
GetCategoryWithAllChildren gets genre with all lower hierarchy genre
// GetCategoryWithAllChildren gets genre with all lower hierarchy genre
func (c *Client) GetCategoryWithAllChildren(ctx context.Context, categoryID int) (*Category, error) {
	res, err := c.SearchCategory(ctx, categoryID)
	if err != nil {
		return nil, err
	}
	category := res.Result.Categories.Current
	if err := c.setChildCategories(ctx, category); err != nil {
		return nil, fmt.Errorf("c.setChildCategories: %w", err)
	}
	return category, nil
}
func ( c * Client ) GetCategoryWithAllChildren ( ctx context . Context , categoryID int ) ( * Category , error ) { res , err := c . SearchCategory ( ctx , categoryID ) if err != nil { return nil , err } category := res . Result . Categories . Current if err := c . setChildCategories ( ctx , category ) ; err != nil { return nil , fmt . Errorf ( " " , err ) } return category , nil }
GetCategoryWithAllChildren gets genre with all lower hierarchy genre
GetCategoryWithAllChildren gets genre with all lower hierarchy genre