it looks like there is a problem connecting to the fitbit api using the oauth1.0 method: after tokens are retrieved from the api, all calls are rejected with an invalid signature error.
It seems that the issue is with the oauth_signature function using curlEscape, while the OAuth 1.0 specification requires curlPercenEncode (see http://oauth.net/core/1.0/#encoding_parameters for details).
Changing the code solves the issue for the fitbit site, although I could not test whether this breaks anything for other api .
The text was updated successfully, but these errors were encountered:
Following that link to http://tools.ietf.org/html/rfc5849#page-29 suggests that even curlPercentEncode isn't quite right. I'll probably write my own to guarantee that it's correct.
it looks like there is a problem connecting to the fitbit api using the oauth1.0 method: after tokens are retrieved from the api, all calls are rejected with an invalid signature error.
It seems that the issue is with the oauth_signature function using curlEscape, while the OAuth 1.0 specification requires curlPercenEncode (see http://oauth.net/core/1.0/#encoding_parameters for details).
Changing the code solves the issue for the fitbit site, although I could not test whether this breaks anything for other api .
The text was updated successfully, but these errors were encountered: