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

Commit

Permalink
docs(*): Add README
Browse files Browse the repository at this point in the history
Added README with basic usage example
  • Loading branch information
Simon Wears committed Mar 26, 2017
1 parent 960aa73 commit 8a99d0e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# HealthGraphQL

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

> Currently supports reading profile information & fitness activities, and reading & writing strength training activities.
## Usage
```javascript
var express = require('express');
var healthgraphql = require('healthgraphql');
var app = express();

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

app.listen(3000);
```

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

0 comments on commit 8a99d0e

Please sign in to comment.