Withings
Modern .NET SDK for Withings generated from the provider's OpenAPI definition with AutoSDK.
Generated from the source spec
Built from a manually-crafted OpenAPI spec covering Withings's Health API so the SDK stays close to the upstream API surface.
Auto-updated
Designed for fast regeneration and low-friction updates when the upstream API changes without breaking compatibility.
Modern .NET
Targets current .NET practices including nullability, trimming, NativeAOT awareness, and source-generated serialization.
Docs from examples
Examples stay in sync between the README, MkDocs site, and integration tests through the AutoSDK docs pipeline.
Usage
1 2 3 4 | |
Examples.AIFunctions
1 2 3 | |
Generate
Basic example showing how to create a client and make a request.
1 | |
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
1 2 3 4 5 6 | |
Available scopes: user.info, user.metrics, user.activity, user.sleepevents
Step 3: Exchange the authorization code for tokens
1 2 3 4 5 6 7 8 9 | |
The response contains access_token (valid ~3 hours) and refresh_token (valid ~1 year).
Step 4: Use the access token
1 2 3 4 5 6 7 8 9 10 | |
Step 5: Refresh tokens
1 2 3 4 5 6 7 8 | |
Support
Bugs
Open an issue in tryAGI/Withings.
Ideas and questions
Use GitHub Discussions for design questions and usage help.
Community
Join the tryAGI Discord for broader discussion across SDKs.
Acknowledgments

This project is supported by JetBrains through the Open Source Support Program.