THIS twitter librabry을 사용하고이 오류가 발생했습니다. 아무도 내가 잘못 가고 있다고 말할 수 있습니까?클래스를 찾을 수 없습니다 PHP
ERROR
Fatal error: Class 'Abraham\TwitterOAuth\Config' not found in D:\wamp\www\Abraham\TwitterOAuth\TwitterOAuth.php on line 17
PHP
<?php
require_once("Abraham/TwitterOAuth/TwitterOAuth.php"); //Path to twitteroauth library you downloaded in step 3
//keys and tokens initialised
function getConnectionWithAccessToken($cons_key, $cons_secret, $oauth_token, $oauth_token_secret) {
$connection = new TwitterOAuth($cons_key, $cons_secret, $oauth_token, $oauth_token_secret);
return $connection;
}
$connection = getConnectionWithAccessToken($consumerkey, $consumersecret, $accesstoken, $accesstokensecret);
$tweets = $connection->get("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$twitteruser."&count=".$notweets);
echo json_encode($tweets);
echo $tweets; //testing remove for production
?>
이 질문을 볼 수 있습니다 : http://stackoverflow.com/questions/27745553/php-include-doesnt-work-for-twitteroauth-php-but-i-copy-and-paste-its-con-rq = 1 –
@Esteban now 오류가 ' { "오류를 표시하고 있습니다. ": [{"message ":"당신을 인증 할 수 없습니다 ","code ": 32}]}' –