Code: Select all
var httpWebRequest = (HttpWebRequest)WebRequest.Create("https://json.schedulesdirect.org/20141201/status");
httpWebRequest.ContentType = "application/json";
httpWebRequest.Method = "POST";
httpWebRequest.UserAgent = SDData.userAgent;
httpWebRequest.Headers.Add("token", SDData.token.token);
var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();
I am experienced in .NET but this is my first time calling a JSON interface.
Any help would be appreciated, thanks.