Start a new topic

DLR in Json Format

string url =


 "http://login.smsgatewayhub.com/RestAPI/MT.svc/sentreport?user=demo111&password=dem123&fromdate=11/01/2015&todate=12/03/2015";

            var request = (HttpWebRequest)WebRequest.Create(url);

            request. Method = "GET";

            request. ContentType = "application/json";

var response = (HttpWebResponse)request. GetResponse();

            using (StreamReader reader = new StreamReader(response. GetResponseStream()))

            {

                string tt = reader. ReadToEnd();

                txtResponse.Text = tt;

            }

note format of data is mm/dd/yyyy


1 person has this question