PHP:在 twitteroauth 中定位 oauth.php 文件
PHP: Locating oauth.php file in twitteroauth
我最近安装了 https://github.com/abraham/twitteroauth 的内容,并在某处读到我真的只需要 oauth.php
和 twitteroauth.php
文件来在我的 Twitter 应用程序中添加 OAuth 身份验证。我在 /twitteroauth-master/src
目录中找到了 twitteroauth.php
文件。但是,我无法在 twitteroauth-master
目录中找到 oauth.php
文件。
oauth.php
的确切位置在哪里?
这里是"oauth.php"在本库中的搜索结果:
https://github.com/abraham/twitteroauth/find/master?q=oauth.php
没有这样的文件
中列出的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
你会找到的!希望对你有帮助。
我最近安装了 https://github.com/abraham/twitteroauth 的内容,并在某处读到我真的只需要 oauth.php
和 twitteroauth.php
文件来在我的 Twitter 应用程序中添加 OAuth 身份验证。我在 /twitteroauth-master/src
目录中找到了 twitteroauth.php
文件。但是,我无法在 twitteroauth-master
目录中找到 oauth.php
文件。
oauth.php
的确切位置在哪里?
这里是"oauth.php"在本库中的搜索结果:
https://github.com/abraham/twitteroauth/find/master?q=oauth.php
没有这样的文件
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 你会找到的!希望对你有帮助。