Aşağıya yazacağım bana nereye ne yazmam gerektiğini söylerseniz sevinirim.
session_start();
require_once("twitteroauth/twitteroauth.php");
// Replace the keys below - Go to https://dev.twitter.com/apps to create the Application
$consumerkey = "BdmhjCsssvgQqnzWADaAfZA";
$consumersecret = "7Gm4Jss9BSQntCXGRLwnaAz19B9CS9CgSaYm4SCvDk8";
$accesstoken = " 1951827073-xossFzoyPX86BTQZhDWdmnvd5qdhfp7L1PQrjSOL2";
$accesssecret = "Fs6LsCJGOgXJ6lkSjssuuLY8EItUKrxZLHchTHRFoAVMcl5";
$twitteruser = $_GET['kullaniciadi'];
$notweets = $_GET['notweets'];
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, $accesssecret);
$tweets = $connection->get("https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=".$twitteruser."&count=".$notweets);
echo json_encode($tweets);
?>