Developers

DEVELOPERS RESOURCES (API)

Content

  1. Introduction
  2. Interface
  3. Implementation
  4. References
  5. Technical support

Introduction
Inotive Solutions BV does have available an Application Programming Interface (API) to connect a user account of Youw8 to and account of a 3rd party service. With this interface a Youw8 user can give permission to share his measurements and widgets from his scale with an account of an other service/site.

Interface
In order to show data inside a widget on an external site, it is needed that the widget collects the data on the Youw8 site. The (flash) widget collects the data in a XML message. The user needs to give permission for this transaction. This ‘permission’ can be given on several ways; one of this is base don the open standard protocol Open Authorisation (OAUTH). OAUTH works like this

  • User creates a Youw8 account
  • User logs in on the 3rd party website/service and checks his widget page (which is empty)
  • Since this is the first time, he needs to give permission to collect the data (by doing the identification is checked to link the right accounts)
  • The user is redirected to the Youw8 site where a pop-up is shown where the user can give permission to link the data (this is done via OAUTH)
  • After this the user is again redirected to the 3rd party site and his widgets including data are shown

The OAUTH exchange is a one-time action; after this the accounts stay connected. Now the technical interface is created and the widgets send a request to the dataproxy inside the r3d party site, there the OUTH headers are added and this total message is then send to the Youw8 server (example is this link where the request is to get weight data):

http://test.youw8.com/exposed/rsservices/flexProcessor/Weight?widgetType...

If the OAUTH headers are correct and the user is validaded de XML container with data is received and widgets show the data in the nice graphs etc.

Implementation
See below for extra information in order to start developing for this interface.
 
OAUTH test key = oauthtest
The OAUTH secret = asdnjhsahn12nd
 
The OAUTH test URL’s are

 
References
 OAUTH generic information you can find on:

 
Our test environment is not always up and running, since we use it for our own development as well.
 
URL to get data via XML (only works if you have OAUTH up and running):
http://test.youw8.com/exposed/rsservices/flexProcessor/Weight?widgetType...

Technical Support 

For question please contact: