node-red-web-nodes icon indicating copy to clipboard operation
node-red-web-nodes copied to clipboard

Runkeeper (HealthGraph) fitness nodes

Open zobalogh opened this issue 10 years ago • 0 comments
trafficstars

Introduction

We'd like to support three possible scenarios with the Runkeeper fitness node initially (we'd like to have the capability to drop in/exchange Runkeeper nodes with Strava nodes so issue #92 is closely related and is almost identical to this issue ):

* Use case 1 (current priority focus): Poll the authenticated user's activities and get details for the most recently uploaded activity => Can be used in flows that check if the user has indeed done scheduled (Google Calendar) activity. If the user has not done activity, certain actions can be taken (re-schedule activity, send text message to coach, notify user to upload activity, etc.)

* Use case 2: Segments => NOT supported by Runkeeper. Runkeeper supports "Records" but they're personal records (say activities number per week, etc.) so it can't be drop-in/replaced.

* Use case 3: Get activities of friends. => Again, NOT possible on Runkeeper.

Get Activities for authenticated user:

http://developer.runkeeper.com/healthgraph/fitness-activities

Input Node

Can be used to send out initial message if:

  • Authenticated user creates a brand new activity (initial focus)
    • node options:
  • NONE! There's no need. Simply keep getting latest activity, see if activity ID changes. Then send out message with the activity's details.

Query Node

Can be used to query the most recent activity of:

  • The authenticated user

OAuth is used to authenticate with Runkeeper.

To be added to credentials as usual.

http://developer.runkeeper.com/healthgraph/registration-authorization

zobalogh avatar Dec 01 '14 16:12 zobalogh