Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 401使用twitter api和Get方法(oAuth)的身份验证问题_Asp.net_Twitter - Fatal编程技术网

Asp.net 401使用twitter api和Get方法(oAuth)的身份验证问题

Asp.net 401使用twitter api和Get方法(oAuth)的身份验证问题,asp.net,twitter,Asp.net,Twitter,我想用twitter搜索微博 使用以下标头对请求进行身份验证 {Authorization: OAuth oauth_nonce="NjM0NTU3NjkwODQ1NjI1MDAw", oauth_signature_method="HMAC-SHA1",oauth_timestamp="1320201086", oauth_consumer_key="Key Goes Here", oauth_token="Token goes here", oauth_signature="D%2F

我想用twitter搜索微博 使用以下标头对请求进行身份验证

{Authorization: OAuth oauth_nonce="NjM0NTU3NjkwODQ1NjI1MDAw",
 oauth_signature_method="HMAC-SHA1",oauth_timestamp="1320201086",
 oauth_consumer_key="Key Goes Here",
 oauth_token="Token goes here",
 oauth_signature="D%2FEWfy3qEr5QiEzSvtcYhBDs864%3D",
 oauth_version="1.0"
}
但它给我401身份验证失败。
有谁能帮我摆脱这一困境。

我建议您考虑使用预先制作的库来处理Twitter API调用,或者至少是OAuth

在我看来,花时间完成OAuth请求签名所需的许多步骤是不值得的

有许多可用的库(从dev.twitter.com浏览列表,省略了非活动项目):


完全披露:我是。

嗨,瑞奇。谢谢你的回复。我读了你的建议,但还是不明白。你能给我一个搜索个人资料和微博的代码示例,并显示在你的页面上吗。