fitbitphp
fitbitphp copied to clipboard
Cannot get a https response when using OAuth Authentication
I am trying to register an app using the url of: https://localhost. For the callback function, I use: https://localhost/wordpress. When I use php api to invoke the oauth authentication, there is no https code in the response of the FitBitPHP->getProfile() that come back. The key and the value of my clients are both correct and I also set my request token and access token for OAuth. The exception shows like: Uncaught exception 'FitBitException' with message 'Fitbit request failed. Code: ' in C:\Program Files\XAMPP\htdocs\fitbitphp.php:328
Maybe you can ignore the variable declaration of $url and $ch, and the set of curl_setopt. Since we I comment of all these lines. The API still not work.