Flow
The process of retrieving user data in the Withings RPM solution involves the following key steps:
- List Your Users: Start by listing the users currently connected to your application. This will give you the information needed to proceed with data retrieval for each user.
Webservice: OAuth2 - List Users - Recover Authorization Code: For each user, retrieve an authorization code. This is required to generate the necessary OAuth2 tokens to access the user's data.
Webservice: OAuth2 - Recover Authorization Code - Get Your Tokens: Once you have the authorization code, exchange it for OAuth2 tokens. These tokens will allow you to make further requests to pull the user's health data.
Webservice: OAuth2 - Get Tokens - Pull the Data: With the tokens, you can now retrieve the user's data. You can either set up automatic notifications for data retrieval or manually refresh to ensure you have the latest information.