Healthspek Web Speks are web pages embedded into the Healthspek iPad and Web Apps. Web Speks open the opportunity for you, as a developer, to create a Spek to be available for all Healthspek users. After your Spek is approved, it can be added by Healthspek users to their Healthspek Dashboards alongside all of their other Speks.
Learn more about the Healthspek Apps at Healthspek.com.
A Web Spek is simply a web page that you host and manage. It is viewable in Healthspek Apps in a web view. HTML, CSS and Javascript can be used as desired. We provide a Web Spek API so that your Spek can interact with the Healthspek App for added functionality.
Download our Web Spek template as a starting point for your first Spek: http://github.com/rabble-rouser/Healthspek-WebSpeks/archive/gh-pages.zip
Server Requirements You will be hosting your own Web Speks. Your server configuration must meet these guidelines:
https
protocol.x-frame-options
access from app.healthspek.com
, nor can your Web Spek link to any URL that denies x-frame-options
access from app.healthspek.com
.Testing your Web Spek on the Healthspek Web App:
See your Web Spek as it will appear in the web application at http://app.healthspek.com/api/webspek/preview
Enter your Spek’s name and URL and click “Test”.
Testing your Web Spek on the Healthspek iPad App:
For access to our iPad Web Spek test application, “InSpektor”, send your email address to nshaw@rabbleandrouser.com. You will be sent an email with instructions for installing the iPad InSpektor application.
Your Web Spek must be approved by Healthspek before it is added to the Healthspek Apps. Send an email to nshaw@rabbleandrouser.com with your Web Spek name and URL to have it reviewed and added to the Healthspek Apps.
header.png
located in your Spek directory then it will be used as your Spek header. If this image is missing, a default header design with your Spek name will be displayed instead. We recommend that header.png
be 320 pixels wide by 40 pixels tall and have a transparent background. This image will be displayed over light gray and white backgrounds.Load this Javascript in your Spek HTML page to access the Web Spek API:
<script type="text/javascript" src="https://github.com/rabble-rouser/Healthspek-WebSpeks/raw/gh-pages//app.healthspek.com/api/webspek/">
open – open a full-screen web view
<a href="https://github.com/rabble-rouser/Healthspek-WebSpeks/blob/gh-pages/fullscreen.html" data-hspek="open">
hspek.open('fullscreen.html', 'open');
modal – open a modal web view
<a href="https://github.com/rabble-rouser/Healthspek-WebSpeks/blob/gh-pages/modal.html" data-hspek="modal">
hspek.open('modal.html', 'modal');
close – close the current full-screen or model web view
<a data-hspek="close">
hspek.close();
You can optionally load (or reload) a page in the parent web view:
<a href="https://github.com/rabble-rouser/Healthspek-WebSpeks/blob/gh-pages/home.html" data-hspek="close">
hspek.close('home.html');
When your Web Spek is loaded via its URL, two parameters will be passed via the URL query string:
accessCode
- This is a session identifier that is necessary when communicating directly with the ChartNow API. This session identifier is only guaranteed to be valid during the user's current session.individualID
- This is a unique member ID that can be used to store information specific to the current member. This ID will always refer to the same member and will never change.Load this CSS in your Spek HTML page to use our CSS styles:
<link href="https://github.com/rabble-rouser/Healthspek-WebSpeks/blob/gh-pages//app.healthspek.com/api/webspek/style.css" rel="stylesheet" type="text/css">