I am trying to retrieve contact list using YQL with help of .Net code.
while i ma executing the code i got error message like "The remote server returned an error: (400) Bad Request.". Anybody can help me to solve this problem.
My code part is give below for reference.
string url = "http://query.yahooapis.com/v1/yql?format=xml&diagnostics=true&q=" + Uri.EscapeUriString(yql);
url = OAuth.GetUrl(url, consumerKey, consumerSecret);
var req = System.Net.HttpWebRequest.Create(url);
var xml = new XmlDocument();
using (var res = req.GetResponse().GetResponseStream()) {
xml.Load(res);
}
return xml;URL with request:http://query.yahooapis.com/v1/yql?
diagnostics=false
&
format=xml
&
oauth_consumer_key=dj0yJmk9NWdpTVlYYWUwT0hxJmQ9WVdrOWRsTk1jazVvTlRRbWNHbzlOVEk0T
VRneE5qSS0mcz1jb25zdW1lcnNlY3JldCZ4PWQ3
&
oauth_nonce=xuabimbaco
&
oauth_signature_method=HMAC-SHA1
&
oauth_timestamp=1309164875
&
oauth_version=2.0
&
q=SELECT%20%2A%20from%20social.contacts%20WHERE%20guid%3D%272MIXXGOTLRI4KOVNSUNMCCFV7E%27
&
oauth_signature=qJglScBKFq%2B15eumCbxxjlQ8QDU%3D
If i missed anything in this code part? or please correct me.
Joychandrasekaran.G
Teal Lead, Zylog Systems Limited,
India