c# - Twitter API oAuth(错误代码 214 : Bad authentication data)

标签 c# api twitter oauth dynamics-crm-2011

我即将让它与 Microsoft Dynamics CRM 应用程序一起使用,但是,我收到错误代码 214:错误的身份验证数据。:(

请求网址为:https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=aspas10&since_id=342379690448805888

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/

相关文章:

c# - 通过 LinkBut​​ton 下载的 .msi 上的 "The HTTP verb used to access this page is not allowed"

api - 在 action=track leanplum Rest Api 中发送字符串参数不工作

javascript - 如何在 sonarqube 上获得超过 10,000 个问题

twitter - 使用 V1.1 获取带有用户名或 ID 的 Twitter 个人资料图像

C# Entity Framework 我们应该使用 POCO.Id 还是仅使用 POCO 来设置关系?

c# - 使用 C# 的 IBM Cognos REST 服务

C# LINQ - 从单个元素中检索多个属性,转换为结构化(非 xml)文本

api - 使用 API 连接到 QuickBooks

javascript - 我向 Twitter API 发出了请求。如何获取从 PHP 脚本到 JavaScript 的 JSON 响应?

android - 应用内 Twitter 时间线无需身份验证?