app-arkathon-example
helper gists for Pryv users
Prerequisites
Run npm install
to fetch the dependencies
Useful links
- API docs
- Front-end libs
- API concepts
- Getting Started JavaScript
- API reference
- Generate App Token
- Dashboard signIn
- Simple raw app
Pryv platform
Patient account creation
We haven't made available the user creation on Pryv, you may do this manually on the following page: https://sw.pryv.me/access/register.html
After user creation, you may implement a login into the patient's Pryv account using the Login part.
Otherwise, generate a token using the app token generation app
Login
If you wish to integrate a login for you app, this is for you.
Simple login used to obtain an app token, with which you will be able to create the data structure (Streams) and data points (Events), as well as Access tokens for care takers, family, insurers and other eHeahlth stakeholders.
run npm run login
to compile login.js
with its dependencies in dist/login.js
Open www/login.html
to display a simple web page containing the login button
Structure creation
To generate the structure for you Pryv data, you may use the code in src/js/createStructure.js to create it in a single batch call.
Events creation
Simple example to create an event in src/js/createEvent.js
Events fetching
Simple example to fetch events in src/js/getEvents.js
Access creation
Simple example to create an access in src/js/createAccess.js