Warning: include_once(normal-page.php): failed to open stream: No such file or directory in /var/www/vhosts/bglbuddy.com/api/sample.html on line 4

Warning: include_once(): Failed opening 'normal-page.php' for inclusion (include_path='/var/www/vhosts/bglbuddy.com.com/includes:./includes:/var/www/vhosts/PHPMailer:/usr/share/pear:/usr/bin/pear') in /var/www/vhosts/bglbuddy.com/api/sample.html on line 4
ManageBGL Sample API calls
Warning: include_once(header3.php): failed to open stream: No such file or directory in /var/www/vhosts/bglbuddy.com/api/sample.html on line 20

Warning: include_once(): Failed opening 'header3.php' for inclusion (include_path='/var/www/vhosts/bglbuddy.com.com/includes:./includes:/var/www/vhosts/PHPMailer:/usr/share/pear:/usr/bin/pear') in /var/www/vhosts/bglbuddy.com/api/sample.html on line 20

Warning: include_once(navigation4.php): failed to open stream: No such file or directory in /var/www/vhosts/bglbuddy.com/api/sample.html on line 23

Warning: include_once(): Failed opening 'navigation4.php' for inclusion (include_path='/var/www/vhosts/bglbuddy.com.com/includes:./includes:/var/www/vhosts/PHPMailer:/usr/share/pear:/usr/bin/pear') in /var/www/vhosts/bglbuddy.com/api/sample.html on line 23


Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /var/www/vhosts/bglbuddy.com/api/sample.html on line 86

ManageBGL API Sample

The ManageBGL 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)

 


Warning: include_once(footer4.php): failed to open stream: No such file or directory in /var/www/vhosts/bglbuddy.com/api/sample.html on line 1531

Warning: include_once(): Failed opening 'footer4.php' for inclusion (include_path='/var/www/vhosts/bglbuddy.com.com/includes:./includes:/var/www/vhosts/PHPMailer:/usr/share/pear:/usr/bin/pear') in /var/www/vhosts/bglbuddy.com/api/sample.html on line 1531