-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.php
More file actions
30 lines (19 loc) · 905 Bytes
/
config.php
File metadata and controls
30 lines (19 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
session_start();
include_once("functions.php");
// Database Details
$host = "dbhost"; // MySQL Hostname
$user = "dbuser"; // MySQL Username
$pass = "dbpassword"; // MySQL Password
$dbname = "dbname"; // MySQL DB Name
// Other Configuration Parameters
// Replace the Redirect URL with your setup
$config_redirect_uri = "https://exain.com/fitbit/token.php";
$config_oauth_url = "https://www.fitbit.com/oauth2/authorize";
$config_scope = "heartrate profile"; // only getting heartrate and profile data
$config_expires_sec = 30 * 24 * 60 * 60; // 30 Days
$config_api_url = "https://api.fitbit.com/1/user/-/activities/heart/date"; // please see getdata.php /$date/1d/1sec/time/00:00/23:59.json";
// Connecting to Database
$config_conn = mysqli_connect("$host","$user","$pass","$dbname");
if (!$config_conn) { exit("No MySQL Connection Established.<BR><BR>" . mysqli_error($config_conn)); }
?>