Skip to content

Conversation

@HendricksJudy
Copy link

Related to #29

Add integration with Google Health to allow users to import and manage their health data.

  • API Endpoint: Add src/app/api/google-health/route.ts to handle Google Health data import with GET and POST methods.
  • OAuth2 Authentication: Add src/lib/google-health/auth.ts to implement OAuth2 authentication flow for Google Health API, including token exchange and refresh functions.
  • Data Fetching and Parsing: Add src/lib/google-health/data.ts to fetch and parse health data from Google Health API, and implement a placeholder function to save imported health data to the database.
  • UI Update: Modify src/components/source/source-add-screen.tsx to include an option for importing data from Google Health, and implement functions to handle the import process and update the state.

Related to OpenHealthForAll#29

Add integration with Google Health to allow users to import and manage their health data.

* **API Endpoint**: Add `src/app/api/google-health/route.ts` to handle Google Health data import with GET and POST methods.
* **OAuth2 Authentication**: Add `src/lib/google-health/auth.ts` to implement OAuth2 authentication flow for Google Health API, including token exchange and refresh functions.
* **Data Fetching and Parsing**: Add `src/lib/google-health/data.ts` to fetch and parse health data from Google Health API, and implement a placeholder function to save imported health data to the database.
* **UI Update**: Modify `src/components/source/source-add-screen.tsx` to include an option for importing data from Google Health, and implement functions to handle the import process and update the state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant