GlucoPilot.LibreLinkClient
0.0.8
See the version list below for details.
dotnet add package GlucoPilot.LibreLinkClient --version 0.0.8
NuGet\Install-Package GlucoPilot.LibreLinkClient -Version 0.0.8
<PackageReference Include="GlucoPilot.LibreLinkClient" Version="0.0.8" />
<PackageVersion Include="GlucoPilot.LibreLinkClient" Version="0.0.8" />
<PackageReference Include="GlucoPilot.LibreLinkClient" />
paket add GlucoPilot.LibreLinkClient --version 0.0.8
#r "nuget: GlucoPilot.LibreLinkClient, 0.0.8"
#:package GlucoPilot.LibreLinkClient@0.0.8
#addin nuget:?package=GlucoPilot.LibreLinkClient&version=0.0.8
#tool nuget:?package=GlucoPilot.LibreLinkClient&version=0.0.8
GlucoPilot.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 | Versions 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. |
-
net10.0
- Microsoft.Extensions.Http (>= 10.0.5)
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.0.9-preview100 | 102 | 4/24/2026 |
| 0.0.8 | 114 | 4/17/2026 |
| 0.0.8-preview900 | 104 | 3/23/2026 |
| 0.0.8-preview800 | 107 | 3/14/2026 |
| 0.0.8-preview700 | 108 | 3/2/2026 |
| 0.0.8-preview600 | 104 | 3/2/2026 |
| 0.0.8-preview500 | 112 | 2/28/2026 |
| 0.0.8-preview400 | 113 | 2/10/2026 |
| 0.0.8-preview300 | 108 | 2/9/2026 |
| 0.0.8-preview200 | 114 | 2/8/2026 |
| 0.0.8-preview100 | 192 | 10/23/2025 |
| 0.0.7 | 200 | 10/9/2025 |
| 0.0.6 | 200 | 10/9/2025 |
| 0.0.6-preview900 | 184 | 10/9/2025 |
| 0.0.6-preview800 | 191 | 10/2/2025 |
| 0.0.6-preview700 | 195 | 9/25/2025 |
| 0.0.6-preview600 | 211 | 9/20/2025 |
| 0.0.6-preview500 | 226 | 9/20/2025 |
| 0.0.6-preview400 | 270 | 9/19/2025 |
| 0.0.6-preview300 | 167 | 9/13/2025 |