Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate Google Health data #60

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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