我最近安装了https://github.com/abraham/twitteroauth的内容,并在某处阅读了我只需要oauth.php
和twitteroauth.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没有这样的文件