I have a google docs spreadsheet set to publish as RSS -> json, and I'm using the code below to retrieve it:
public void getDocData()
{
String url = "https://spreadsheets.google.com/blah blah blah/basic?alt=json";
using (var w = new WebClient())
{
//here's where the problem is
String json_data = w.DownloadString(url);
//blah blah parse json_data;
}
}
My problem is that the DownloadString is taking an inordinately long amount of time (10-15 seconds), and I have absolutely no idea why. The weird thing is I have a node/javascript app that uses the exact same link and an http.get request and doesn't have the same problem.
Anyone have any ideas?