Skip to content
This repository has been archived by the owner on Dec 17, 2018. It is now read-only.

Latest commit

 

History

History
24 lines (19 loc) · 698 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 698 Bytes

HealthGraphQL

This repository is here for reference purposes only, as the HealthGraph API by RunKeeper is no longer publically available

A GraphQL wrapper around the Health Graph, to support reading and writing data.

Usage

var express = require('express');
var healthgraphql = require('@munkyjunky/healthgraphql');
var app = express();

app.use(healthgraphql({
	graphiql: true,
	getAccessToken: function (req) {
		// return access token here
	}
}));

app.listen(3000);

Options

graphiql - Boolean (optional) - Enable or disable the graphiql interface.
getAccessToken - Function (optional) - Should return the access token to use to access the Health Graph.