CgmLink.LibreLinkClient 0.3.2

dotnet add package CgmLink.LibreLinkClient --version 0.3.2
                    
NuGet\Install-Package CgmLink.LibreLinkClient -Version 0.3.2
                    
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="CgmLink.LibreLinkClient" Version="0.3.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CgmLink.LibreLinkClient" Version="0.3.2" />
                    
Directory.Packages.props
<PackageReference Include="CgmLink.LibreLinkClient" />
                    
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 CgmLink.LibreLinkClient --version 0.3.2
                    
#r "nuget: CgmLink.LibreLinkClient, 0.3.2"
                    
#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 CgmLink.LibreLinkClient@0.3.2
                    
#: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=CgmLink.LibreLinkClient&version=0.3.2
                    
Install as a Cake Addin
#tool nuget:?package=CgmLink.LibreLinkClient&version=0.3.2
                    
Install as a Cake Tool

CgmLink.LibreLinkClient

The C# client library for accessing LibreLink data.

Usage

Register the client with:

// Add the LibreLinkClient and required services to DI.
services.AddLibreLinkClient(configuration.GetSection("LibreLink"));

Before making any requests to LibreLink, you must first authenticate the client. Failure to authenticate before a request will result in a LibreLinkNotAuthenticatedException exception.

Authentication is maintained for the lifetime of the client and when authentication expires, a LibreLinkAuthenticationExpiredException is thrown when attempting to call the client.

There are two methods of authenticating:

Username and Password

When using a username and password, the request is sent to LibreLink to authenticate and an auth ticket is returned.

// Authenticate with username and password.
_ = await libreLinkClient.LoginAsync("username", "password");

This auth ticket should then be stored and re-used with the auth ticket authentication method so you do not need to continually ask for a username and password.

Auth Ticket

Once authenticated with a username and password, the client returns an auth ticket which can be stored and re-used to authenticate the client.

// Authenticate with username and password.
var authTicket = await libreLinkClient.LoginAsync("username", "password");
// Store the auth ticket somewhere.
store.SaveTicket("username", authTicket);

// ...

// Load the stored auth ticket.
var authTicket = store.LoadTicket("username");
// Authenticate with the previous auth ticket.
await libreLinkClient.LoginAsync(authTicket);

If the auth ticket used to authenticate has expired, a LibreLinkAuthenticationExpiredException will be thrown.

Note: The auth ticket contains a long-lived access token that enables users to access LibreLink data. This data should be treated a sensitive and stored as such.

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
0.3.2 89 9/23/2026
0.3.1 93 9/20/2026
0.3.0 95 9/20/2026
0.2.8 112 8/11/2026
0.2.7 106 8/7/2026
0.2.6 103 8/7/2026
0.2.5 117 8/6/2026
0.2.4 109 7/18/2026
0.2.3 118 7/17/2026
0.2.2 125 7/12/2026
0.2.0 124 6/22/2026
0.1.0 107 5/29/2026