我即将让它与 Microsoft Dynamics CRM 应用程序一起使用,但是,我收到错误代码 214:错误的身份验证数据。:(
Authentication Header: 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;
我哪里出错了,为什么会出现这个错误?
最佳答案
能否请您发布您如何获得 authHeader 的代码?我认为问题就在那里。
另请查看此示例并确保您具有相同的 header :
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
关于c# - Twitter API oAuth(错误代码 214 : Bad authentication data),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17354427/