Do not prepend oauth_ to additional parameters for oauth_signature #373
The flickr API for instance needs all query parameters to be included in
With this change I am able to get a 200 response with the following code (app secret redacted)
f <- oauth_app("r to flickr", "ed724990662ac2b8c236726a34226ea9", "<redacted>") ep <- oauth_endpoint( request = "https://www.flickr.com/services/oauth/request_token", authorize = "https://www.flickr.com/services/oauth/authorize", access = "https://www.flickr.com/services/oauth/access_token" ) tok <- oauth1.0_token(ep, f, cache = T) signature <- oauth_signature("https://api.flickr.com/services/rest", app = tok$app, token = tok$credentials$oauth_token, token_secret = tok$credentials$oauth_token_secret, other_params = list(method = "flickr.test.login", format = "json", "nojsoncallback" = 1)) GET("https://api.flickr.com/services/rest", query = signature)
Some APIs simply return the first item as the verifier token, others return a named oauth_verifier (which may not be first) along with other information.