WebRequest.Create("https://api.zomato.com/v1/cities.xml")
as HttpWebRequest;
HttpWebResponse webResponse =
null;
webRequest.Headers.Add("X-Zomato-API-Key",
"KeyValue");
//you can get KeyValue by registering with Zomato.
webRequest.Method = "GET";
//you can get KeyValue by registering with Zomato.
webRequest.Method = "GET";
webResponse = (HttpWebResponse)webRequest.GetResponse();
if (webResponse.StatusCode ==
HttpStatusCode.OK)
{
StreamReader
responseReader = new
StreamReader(webResponse.GetResponseStream());
StreamReader(webResponse.GetResponseStream());
string responseData = responseReader.ReadToEnd();
XmlDocument
doc = new
XmlDocument();
doc.LoadXml(responseData);
XmlNodeReader
xmlReader = new
XmlNodeReader(doc);
DataSet
ds = new
DataSet();
ds.ReadXml(xmlReader);
return ds;
}

Rahat KhannaPosted May 7, 2014, 2:07 AM
Raju do you have the key for this API ?
Raju KatarePosted Apr 4, 2012, 6:31 AM
This API is not open source. But it will be free upto 500 requests.
Mahesh ChandPosted Apr 4, 2012, 6:23 AM
Is this API open source or you have to buy it?