I\'m trying to connect to the fitbit api using the httr library.
Using the examples provided, I came up with the following code:
library(httr) key &
The problem comes from the httr library, that uses curlEscape for encoding paramaters while the OAuth 1.0 specifications requires percent encoding (see this page).
Replacing calls to curlEscape with curlPercentEncode solves the issue!
many thanks to @mark-s for his help.