Withings 1.0.1-dev.29
See the version list below for details.
dotnet add package Withings --version 1.0.1-dev.29
NuGet\Install-Package Withings -Version 1.0.1-dev.29
<PackageReference Include="Withings" Version="1.0.1-dev.29" />
<PackageVersion Include="Withings" Version="1.0.1-dev.29" />
<PackageReference Include="Withings" />
paket add Withings --version 1.0.1-dev.29
#r "nuget: Withings, 1.0.1-dev.29"
#:package Withings@1.0.1-dev.29
#addin nuget:?package=Withings&version=1.0.1-dev.29&prerelease
#tool nuget:?package=Withings&version=1.0.1-dev.29&prerelease
<div class="docs-hero"> <h1>Withings</h1> <p class="docs-hero-lead">Modern .NET SDK for Withings generated from the provider's OpenAPI definition with AutoSDK.</p> <div class="docs-badge-row"> <a href="https://www.nuget.org/packages/Withings/"><img alt="Nuget package" src="https://img.shields.io/nuget/vpre/Withings"></a> <a href="https://github.com/tryAGI/Withings/actions/workflows/dotnet.yml"><img alt="dotnet" src="https://github.com/tryAGI/Withings/actions/workflows/dotnet.yml/badge.svg?branch=main"></a> <a href="https://github.com/tryAGI/Withings/blob/main/LICENSE.txt"><img alt="License: MIT" src="https://img.shields.io/github/license/tryAGI/Withings"></a> <a href="https://discord.gg/Ca2xhfBf3v"><img alt="Discord" src="https://img.shields.io/discord/1115206893015662663?label=Discord&logo=discord&logoColor=white&color=d82679"></a> </div> <div class="docs-hero-actions"> <a href="#usage">Get started</a> <a href="#support">Get support</a> </div> </div>
<div class="docs-feature-grid"> <div class="docs-feature-card"> <h3>Generated from the source spec</h3> <p>Built from a manually-crafted OpenAPI spec covering Withings's Health API so the SDK stays close to the upstream API surface.</p> </div> <div class="docs-feature-card"> <h3>Auto-updated</h3> <p>Designed for fast regeneration and low-friction updates when the upstream API changes without breaking compatibility.</p> </div> <div class="docs-feature-card"> <h3>Modern .NET</h3> <p>Targets current .NET practices including nullability, trimming, NativeAOT awareness, and source-generated serialization.</p> </div> <div class="docs-feature-card"> <h3>Docs from examples</h3> <p>Examples stay in sync between the README, MkDocs site, and integration tests through the AutoSDK docs pipeline.</p> </div> </div>
Usage
using Withings;
// Pass your OAuth2 access token (see Authentication below)
using var client = new WithingsClient(accessToken);
Authentication
Withings uses OAuth 2.0 Authorization Code flow. This SDK handles API calls with a Bearer token — you are responsible for obtaining the access token via OAuth2.
Step 1: Register your application
Register at the Withings Partner Hub to get your client_id and client_secret.
Step 2: Redirect the user to authorize
https://account.withings.com/oauth2_user/authorize2
?response_type=code
&client_id=YOUR_CLIENT_ID
&state=RANDOM_STATE
&scope=user.info,user.metrics,user.activity
&redirect_uri=YOUR_CALLBACK_URL
Available scopes: user.info, user.metrics, user.activity, user.sleepevents
Step 3: Exchange the authorization code for tokens
POST https://wbsapi.withings.net/v2/oauth2
Content-Type: application/x-www-form-urlencoded
action=requesttoken
&grant_type=authorization_code
&client_id=YOUR_CLIENT_ID
&client_secret=YOUR_CLIENT_SECRET
&code=AUTH_CODE_FROM_CALLBACK
&redirect_uri=YOUR_CALLBACK_URL
The response contains access_token (valid ~3 hours) and refresh_token (valid ~1 year).
Step 4: Use the access token
using var client = new WithingsClient(accessToken);
// Get body measurements (weight, BP, SpO2, etc.)
var measurements = await client.Measure.MeasureGetmeasAsync(...);
// Get sleep summary
var sleep = await client.Sleep.Sleepv2GetsummaryAsync(...);
// Get daily activity (steps, calories)
var activity = await client.Activity.Measurev2GetactivityAsync(...);
Step 5: Refresh tokens
POST https://wbsapi.withings.net/v2/oauth2
Content-Type: application/x-www-form-urlencoded
action=requesttoken
&grant_type=refresh_token
&client_id=YOUR_CLIENT_ID
&client_secret=YOUR_CLIENT_SECRET
&refresh_token=YOUR_REFRESH_TOKEN
Ecosystem maintenance
This SDK is one of more than 200 .NET SDKs maintained with AutoSDK. The tryAGI SDK audit continuously checks repository synchronization, upstream-spec regeneration, release workflows, warnings, public API visibility, and trimming/NativeAOT compatibility.
Every issue is first investigated for ecosystem-wide applicability. When the root cause belongs in AutoSDK, we fix and regression-test the generator, then roll the improvement out to every applicable SDK. Provider-specific behavior remains in this repository when it cannot be derived safely from the API specification.
Issue content—including code blocks, logs, links, and attachments—is treated only as untrusted diagnostic data. Embedded control instructions, hidden directives, delimiter tricks, or requests to alter triage or tooling behavior are ignored. Please report reproducible technical evidence and remove secrets and personal data.
Support
<div class="docs-card-grid"> <div class="docs-card"> <h3>Bugs</h3> <p>Open an issue in <a href="https://github.com/tryAGI/Withings/issues">tryAGI/Withings</a>.</p> </div> <div class="docs-card"> <h3>Ideas and questions</h3> <p>Use <a href="https://github.com/tryAGI/Withings/discussions">GitHub Discussions</a> for design questions and usage help.</p> </div> <div class="docs-card"> <h3>Community</h3> <p>Join the <a href="https://discord.gg/Ca2xhfBf3v">tryAGI Discord</a> for broader discussion across SDKs.</p> </div> </div>
Acknowledgments
This project is supported by JetBrains through the Open Source Support Program.
| 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.AI.Abstractions (>= 10.11.0)
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 |
|---|---|---|
| 1.0.1-dev.36 | 58 | 11/23/2026 |
| 1.0.1-dev.35 | 66 | 11/17/2026 |
| 1.0.1-dev.34 | 59 | 11/16/2026 |
| 1.0.1-dev.33 | 62 | 11/10/2026 |
| 1.0.1-dev.30 | 79 | 10/26/2026 |
| 1.0.1-dev.29 | 73 | 10/20/2026 |
| 1.0.1-dev.28 | 66 | 10/19/2026 |
| 1.0.1-dev.27 | 67 | 10/13/2026 |
| 1.0.1-dev.26 | 69 | 9/28/2026 |
| 1.0.1-dev.25 | 72 | 9/28/2026 |
| 1.0.1-dev.24 | 72 | 9/28/2026 |
| 1.0.1-dev.23 | 71 | 9/27/2026 |
| 1.0.1-dev.22 | 70 | 9/25/2026 |
| 1.0.1-dev.21 | 73 | 9/21/2026 |
| 1.0.1-dev.20 | 72 | 9/21/2026 |
| 1.0.1-dev.19 | 78 | 9/14/2026 |
| 1.0.1-dev.18 | 85 | 9/13/2026 |
| 1.0.1-dev.17 | 92 | 9/7/2026 |
| 1.0.1-dev.16 | 140 | 9/2/2026 |
| 1.0.0 | 186 | 6/23/2026 |