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

 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to