Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How do you get data?

authentication works fine

 

require 'fitbitphp.php';

$consumer_key ='XXXX';
$consumer_secret='XXXX';

$fitbit = new FitBitPHP($consumer_key, $consumer_secret);


$fitbit->initSession('http://162.242.242.96/#/profile');

 

Nothing works after authenticating

$profile = $fitbit->getProfile();
var_dump($profile);

 

Fitbit request failed. Code: 400

 

$activities = $fitbit->getActivities(new DateTime(date('Y-m-d')));
var_dump($activities);

 

Fitbit request failed. Code: 400

 

 $fitbit->setUser($_SESSION['userId']);

 

returns no userId

 

How do I resolve these?

 

Best Answer
0 Votes
1 REPLY 1

Can someone please help me? I bought a Surge and tried to download the software to my Windows PC. I followed directions on page 4 of user manual, but when I opened the folder, I could not locate the installation program FitbitConnect_Win.exe. I tried deleting the folder but the error message said this couldn't be done because a file in the program was in use. What can I do?

Best Answer
0 Votes