2013-06-19 2 views

답변

0

oAuth를 사용해야합니다.

예를 들어이 클래스를 사용하면 https://github.com/abraham/twitteroauth 도 필요한 KEY ($ consumer_key, $ consumer_secret, $ oauth_token, $ oauth_token_secret)를 가져 오는 앱을 만들어야합니다. 타임 라인에서 트윗을 사용하려면이 코드를 실행하십시오.

require_once(dirname(__FILE__) . '/libs/twitteroauth.php'); 
$connection = new TwitterOAuth($consumer_key, $consumer_secret, $oauth_token, $oauth_token_secret); 
    $response = $connection->get('statuses/user_timeline', array('screen_name' => $twitter_name)); 
    echo '<pre>'.print_r($response,1).'</pre>'; 
관련 문제