Soenneker.Rebrickable.Colors 4.0.316

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Rebrickable.Colors --version 4.0.316
                    
NuGet\Install-Package Soenneker.Rebrickable.Colors -Version 4.0.316
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.Rebrickable.Colors" Version="4.0.316" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Rebrickable.Colors" Version="4.0.316" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Rebrickable.Colors" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Rebrickable.Colors --version 4.0.316
                    
#r "nuget: Soenneker.Rebrickable.Colors, 4.0.316"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.Rebrickable.Colors@4.0.316
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Rebrickable.Colors&version=4.0.316
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Rebrickable.Colors&version=4.0.316
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Rebrickable.Colors

Retrieves Rebrickable's LEGO color-list response through the shared authenticated API client.

Installation

dotnet add package Soenneker.Rebrickable.Colors

Configuration

{
  "Rebrickable": {
    "ApiKey": "your-api-key"
  }
}

Usage

using Soenneker.Rebrickable.Colors.Abstract;
using Soenneker.Rebrickable.Colors.Registrars;

services.AddRebrickableColorsUtilAsSingleton();

public sealed class ColorImporter
{
    private readonly IRebrickableColorsUtil _colors;

    public ColorImporter(IRebrickableColorsUtil colors)
    {
        _colors = colors;
    }

    public async Task Import(CancellationToken cancellationToken)
    {
        await using Stream? response = await _colors.GetAll(cancellationToken);

        if (response is null)
            return;

        // Deserialize or copy the JSON response here.
    }
}

GetAll returns the raw response stream and the caller owns that stream. Despite the method name, Rebrickable's list endpoint is paginated; this method retrieves the first response page and does not follow its next link automatically.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.333 39 9/10/2026
4.0.332 42 9/9/2026
4.0.331 43 9/9/2026
4.0.330 34 9/8/2026
4.0.329 35 9/8/2026
4.0.328 54 9/8/2026
4.0.327 60 9/8/2026
4.0.325 63 9/7/2026
4.0.324 100 9/4/2026
4.0.323 94 9/4/2026
4.0.322 89 9/4/2026
4.0.320 87 9/4/2026
4.0.319 91 9/4/2026
4.0.318 88 9/3/2026
4.0.317 96 9/1/2026
4.0.316 85 9/1/2026
4.0.315 94 8/31/2026
4.0.314 89 8/31/2026
4.0.313 91 8/31/2026
4.0.312 91 8/31/2026
Loading failed

Updated NuGet packages