I used to use RCurl, to grab the data that needs login. Now I have to grab the data using api key (as well as userid,password) and it needs a basic authentication (Radian6 a
You might find it a little easier to use httr. The code would look something like this:
library(httr) req <- GET("https://address.com/authenticate", authenticate("user", "pass", type = "basic"), add_headers(auth_appkey = api_key)) stop_for_status(req) content(req) # Then extract token etc