Flow
To bring existing Withings users into your RPM program, you need to establish a link between your partner application and the user's Withings account. This guide walks you through the necessary steps, from linking the user to adding them to your Remote Patient Monitoring (RPM) cohorts.
Step 1: Linking Users with Your Application
Before a user can be added to your RPM program, there must already be a connection between your partner application and their Withings account. This connection is made through the OAuth2 authorization process, which allows your app to securely access the user's health data.
If you haven't yet linked a user to your app, don't worry—we've got you covered. You can follow our detailed Public API Integration Guide to learn how to retrieve the user's token through the OAuth2 web flow. Once you obtain this token, you'll be able to interact with the user's data and add them to your RPM program.
Step 2: Adding the User to Your RPM Program
Once you have successfully linked the user to your app and retrieved their token, you can proceed with adding them to your RPM program. This is done by calling the user-v2.addtorpm web service. This service allows you to assign the user to a specific cohort within your RPM program.