Closed Alec-Stashevsky closed 4 years ago
I haven't read your issue closely but just want to point out a tool that is generally helpful:
Tools to Transform ‘cURL’ Command-Line Calls to ‘httr’ Requests https://cinc.rud.is/web/packages/curlconverter/index.html
I am translating a cURL command into a httr::GET request. When I test the command in a git terminal using regular cURL syntax I am able to get a successful query. However, there is some issue going on with the httr::GET query syntax. I believe it may be due to the brackets or that only a username is required to gain access to the API.
I am omitting the API key for security.
For reference here is the original curl command:
And how I have translated that to R which is generating a 400 error and returning a json content as "invalid_request_error"