The Jade API sample below allows you to login, retrieve an access token, and then add a BGL.

Please join our API group so that we can keep you informed of updates, changes, down-time etc -

Samples:

Login / Retrieve an Access Token

When you login successfully, the API returns an Access Token to be used for future API calls.

Email address: (required)
Password: (required)
Debug:

   

Add Log

Token: (required)
Log type: - See documentation
Time: (optional, if blank, uses 'now') Remember - this is UTC/GMT. See documentation
Value: See documentation
Other: See documentation
Notes: (optional)
GUID: (optional)

Add Log - direct POST request

Token: (required)
Log type: - See documentation
Time: (optional, if blank, uses 'now') Remember - this is UTC/GMT. See documentation
Value: See documentation
Other: See documentation
Notes: (optional)
GUID: (optional)

Add Audit Log (to update settings/ratios)

Token: (required)
Log type: 23 - Audit Log Entry
Value 0
Time: (optional, if blank, uses 'now') Remember - this is UTC/GMT. See documentation
Notes: changed to

Update Log

Token: (required)
Log Id: (required)
Log type: (required) 1 for BGL, 2 for Insulin, 3 for Carbs etc. See documentation
Time: (optional, if blank, uses 'now') Remember - this is UTC/GMT. See documentation
Value: See documentation
Other: See documentation
Notes: (optional)

Delete Log

Token: (required)
Log id: (required)

Setup Check

Token: (required)

Get Sync Status

Token: (required)

Get User's Settings

Token: (required)

Log_Range - get date range for user's data

Note - this is UTC/GMT.

Token: (required)

Extract Data

Token: (required)
Start date: (required) Format: Y-m-d H:i:s. Remember - this is UTC/GMT.
End date: (required) Format: Y-m-d H:i:s. Remember - this is UTC/GMT.
Page: (optional)

Logout

Token: (required)

Ping API

Checks if the API is live.

 

Ping Database

Checks if the Database is live.

 

Predict BGLs

Predicts BGLs between 2 dates - subscribers only

Token: (required)
Subscriber Token: (required)
Start date: (required) Format: Y-m-d H:i:s. Remember - this is UTC/GMT.
End date: (optional) Format: Y-m-d H:i:s, maximum 5 hours. Remember - this is UTC/GMT.

 

Import Data

Imports data from a range of diabetes data formats - subscribers only.

Token: (required)
Subscriber Token: (required)
File: (required)

  (opens in new window)

Avatar (set)

Set's the user's Avatar

Token: (required)
File: (required)

  (opens in new window)

Get Nonce

Get a one-time password for direct website login

Token: (required)

 

Undo Last Log

Removed the previous log

Token: (required)

 

Get Active Insulin - subscribers only

Get Insulin on board / Active insulin (note - always excludes basal insulins)

Token: (required)
Subscriber Token: (required)

 

Calculate Insulin Dose - subscribers only

Calculate a dose based on blood sugar and/or carbs

Token: (required)
Subscriber Token: (required)
BGL:
Carbs:

 

Create account

Creates a new account. Authorised third parties only

Third party id: (required)
App title:
App Version:
Device:
Email: (required)
Password: (required)
First name:
Last name: