I've been playing a little with httr and rcurl and cannot manage to translate the following curl GET request into R:
curl -X GET --header 'Accept: application/json' --header 'Authorization: Bearer 31232187asdsadh23187' 'https://this.url.api.com:334/api/endpoint'
Particularly, I've been having some trouble to pass the Authorization option as I was not able to find the equivalent parameter in neither of the libraries. It might be a custom header maybe?
httr::GET('https://this.url.api.com:334/api/endpoint',
accept_json(),
add_headers('Authorization' = 'Bearer 31232187asdsadh23187'))