include 'EpiCurl.php';
include 'EpiOAuth.php';
include 'EpiTwitter.php';
$consumer_key = 'XXXXXXXXXXXXXXXXXXX';
$consumer_secret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
$twitterObjUnAuth = new EpiTwitter($consumer_key, $consumer_secret);

$url = $twitterObj->getAuthorizeUrl(null,array('oauth_callback' => 'http://test.test/oauth/simpleTest.php'));
if($_GET["oauth_token"]){
$token = $twitterObjUnAuth->getAccesToken(array("oauth_verifier" => $_GET["oauth_verifier"]));
var_dump($token->oauth_token, $token->oauth_token_secret);

}
echo 'Authorize with Twitter';

?>



Kullandıklarım :
https://github.com/jmathai/twitter-async
Wiki:
https://github.com/jmathai/twitter-async/wiki

$token->oauth_token, $token->oauth_token_secret) ==> Burada yazan iki değere ulaşamıyorum, bu nasıl olacak?

--------------------------------------

Arkadaşlar çözülmüş hali aşağıdaki gibidir, umarım birinin faydasına dokunur. Kolay gelsin :)

include 'EpiCurl.php';
include 'EpiOAuth.php';
include 'EpiTwitter.php';
$consumer_key = '';
$consumer_secret = '';

$twitterObj = new EpiTwitter($consumer_key, $consumer_secret);
$twitterObjUnAuth = new EpiTwitter($consumer_key, $consumer_secret);

$url = $twitterObj->getAuthorizeUrl(null,array('oauth_callback' => 'http://giitbook.com/oauth/simpleTest.php'));
if($_GET["oauth_token"]){
$twitterObj->setToken($_GET['oauth_token']);
$token = $twitterObj->getAccessToken(array('oauth_verifier' => $_GET['oauth_verifier']));
$twitterObj->setToken($token->oauth_token, $token->oauth_token_secret);
}
echo 'Authorize with Twitter';

?>