fitbitphp icon indicating copy to clipboard operation
fitbitphp copied to clipboard

Cannot get a https response when using OAuth Authentication

Open danisbohan opened this issue 9 years ago • 2 comments

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

danisbohan avatar May 07 '15 18:05 danisbohan

fitbit_problem

danisbohan avatar May 07 '15 18:05 danisbohan

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.

danisbohan avatar May 07 '15 18:05 danisbohan