我接近使用Microsoft Dynamics CRM应用程序,但是,我得到错误代码214:错误的身份验证数据 . :(
身份验证标头:OAuth oauth_nonce =“****”,oauth_signature_method =“HMAC-SHA1”,oauth_timestamp =“1372370208”,oauth_consumer_key =“*”,oauth_token =“***** *“,oauth_signature =”********“,oauth_version =”1.0“
我的代码包括:
request.Headers.Add(“Authorization”, authHeader);
request.Method = “GET”;
request.ContentType = “application/x-www-form-urlencoded”;
var response = (HttpWebResponse)request.GetResponse();
return response;
我出错的任何想法以及为什么我会收到此错误?
1 回答
你能发一下如何获得authHeader的代码吗?我认为问题在那里 .
另请查看此示例并确保您具有相同的标头:
http://code.msdn.microsoft.com/windowsapps/Twitter-OAuth-Example-3a99967f
问候,
马里奥
PS:也许是我的代理,但我无法导航到https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=aspas10&since_id=342379690448805888