I need to integrate a FitBit API class into Cake and I have never done this before so just looking for some tips to point me in the right direction.
The class can be seen here https://github.com/heyitspavel/fitbitphp/blob/master/fitbitphp.php
Modify the file name to Fitbit.php place in Controllers / Components and :
class FitbitComponent extends Component {
……
}
Reference it in the needed controller:
public $components = array('Fitbit');
and call its methods as normal?
$profile = $this->Fitbit-> getProfile();
Do what ever…….. Any insight to get me going would be greatly appreciated. Thanks,Dave
No comments:
Post a Comment