新手OAuth问题:尝试使用PHPoAuthLib OAuth库时出错
在连接twitter时,我在使用OAuth库时遇到了一个问题: 我正在使用以下url进行连接: 我得到以下错误: 致命错误:未捕获异常“OAuth\Common\Http\exception\TokenResponseException”,消息为“file_get_contents():无法打开流:Http请求失败!HTTP/1.1 401 Unauthorized'in/webDeploy/V2/sites/wandexBB/oauth/src/oauth/Common/HTTP/Client/StreamClient.php:75堆栈跟踪:#0/webDeploy/V2/sites/wandexBB/oauth/src/oauth/OAuth1/Service/AbstractService.php#1/webDeploy/V2/sites/wandexBB/oauth/examples/twitter.php(59):第75行的oauth\OAuth1\Service\AbstractService->requestRequestToken()#2{main}抛出/webDeploy/V2/sites/wandexBB/oauth/src/oauth/Common/Http/Client/StreamClient.php 看起来请求主体是空的 我看到代码中使用了以下参数:新手OAuth问题:尝试使用PHPoAuthLib OAuth库时出错,oauth,twitter-oauth,Oauth,Twitter Oauth,在连接twitter时,我在使用OAuth库时遇到了一个问题: 我正在使用以下url进行连接: 我得到以下错误: 致命错误:未捕获异常“OAuth\Common\Http\exception\TokenResponseException”,消息为“file_get_contents():无法打开流:Http请求失败!HTTP/1.1 401 Unauthorized'in/webDeploy/V2/sites/wandexBB/oauth/src/oauth/Common/HTTP/Clie
$_GET['oauth_token'],
$_GET['oauth_verifier'],
这些情人是什么?我在twitter上创建应用程序后,在我的twitter帐户中看到了各种可用的令牌,这与此有关吗
我迷路了:/这可能是完全错误的方法
有人能帮忙吗
提前感谢。这个库似乎有一个与twitter实现相关的bug。现在使用一个不同的库,可以更轻松地进行: