PHP:在twitteroauth中找到oauth.php文件


PHP: Locating oauth.php file in twitteroauth

我最近安装了https://github.com/abraham/twitteroauth的内容,并在某处阅读了我只需要oauth.phptwitteroauth.php文件来在我的Twitter应用程序中添加OAuth认证。我在/twitteroauth-master/src目录中找到了twitteroauth.php文件。但是,我无法在twitteroauth-master目录中找到oauth.php文件。

oauth.php到底在哪里?

这是Twitter文档中列出的oauth的实现代码-

function getConnectionWithAccessToken($oauth_token, $oauth_token_secret) {
  $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $oauth_token, $oauth_token_secret);
  return $connection;
}
$connection = getConnectionWithAccessToken("abcdefg", "hijklmnop");
$content = $connection->
get("statuses/home_timeline");

但是,文件本身可以在官方存储库中找到- Google Code OAuth.php

更多细节,请访问- https://code.google.com/p/oauth/=> php你会找到的!

下面是这个库中"oauth.php"的搜索结果:

https://github.com/abraham/twitteroauth/find/master?q=oauth.php

没有这样的文件